readEntry and booleans

David Faure faure at kde.org
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 kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).





More information about the kde-core-devel mailing list