[kde-edu]: Fwd: check button don't do anything if the answer is complete number
Albert Astals Cid
aacid at kde.org
Thu Jan 22 23:21:25 CET 2009
A Dijous 22 Gener 2009, Nadav Vinik va escriure:
> ---------- Forwarded message ----------
> From: Nadav Vinik <nadavvin at gmail.com>
> Date: Wed, Jan 21, 2009 at 10:05 PM
> Subject: check button don't do anything if the answer is complete number
> To: annma at kde.org
Just for the record
if (numer_edit->text().isEmpty() == true && deno_edit->text().isEmpty() ==
true && integer_edit->text().isEmpty() == true)
is the same as
if (numer_edit->text().isEmpty() && deno_edit->text().isEmpty() &&
integer_edit->text().isEmpty())
and in my opinion the second line looks much better.
No need to change it, just keep it in mind for the future :-)
Albert
More information about the kde-edu
mailing list