readEntry and booleans

Daniel Molkentin molkentin at kde.org
Tue Jan 3 23:49:52 GMT 2006


Am Dienstag, 3. Januar 2006 23:59 schrieb David Faure:
> 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?

In case of bool, I'd be all for a readEntry() overload, unless I am missing a 
design problem going with it.

Cheers,
  Daniel
-------------- 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/092230f6/attachment.sig>


More information about the kde-core-devel mailing list