readEntry and booleans
Thomas Braxton
brax108 at cox.net
Tue Jan 3 23:57:12 GMT 2006
On Tuesday 03 January 2006 17:49, Daniel Molkentin wrote:
> 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
I'm currently testing a possible solution to the problem, a template'd
readEntry that seems to be working, should be able to commit later tonight.
Thomas
More information about the kde-core-devel
mailing list