readEntry and booleans

Olivier Goffart ogoffart at tiscalinet.be
Tue Jan 3 23:42:03 GMT 2006


Le Mardi 3 Janvier 2006 23:59, David Faure a écrit :
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060104/d042dfd6/attachment.sig>


More information about the kde-core-devel mailing list