From kde-core-devel Tue Jan 03 23:42:03 2006 From: Olivier Goffart Date: Tue, 03 Jan 2006 23:42:03 +0000 To: kde-core-devel Subject: Re: readEntry and booleans Message-Id: <200601040042.08904.ogoffart () tiscalinet ! be> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=113633386130015 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart2528115.zT6FQto2TS" --nextPart2528115.zT6FQto2TS Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Le Mardi 3 Janvier 2006 23:59, David Faure a =E9crit=A0: > On Tuesday 03 January 2006 23:00, Cornelius Schumacher wrote: > > compare > > readEntry( "key", QVariant( false ) ).toBool() > > to > > readBoolEntry( "key", false ) > > Since booleans convert so badly to QVariant, maybe we should keep > readBoolEntry or add a readEntry( key, bool ) overload? I agree --nextPart2528115.zT6FQto2TS Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDuwvQz58lY8jWrL0RAkG6AKCRIi2wewduF6zTMuDA3TP8uRzYhQCfZqOB OkXXkYIXdxIUDAeAfg9jYm0= =LR+D -----END PGP SIGNATURE----- --nextPart2528115.zT6FQto2TS--