On Wednesday, 26 de October de 2011 07.15.59, [email protected] wrote: > bool parseOk; > if (!str.toBool(&parseOk)) { > if (parseOk) > disableSuperFastRenderer(); > }
bool parseOk
if (!str.toBool(&parseOk) && parseOk)
disableSuperFastRenderer();
Or you can accept that, if the user types crap instead of "false", it's false.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
