readEntry and booleans

David Faure faure at
Tue Jan 3 22:59:13 GMT 2006

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?

David Faure, faure at, sponsored by Trolltech to work on KDE,
Konqueror (, and KOffice (

More information about the kde-core-devel mailing list