KConfigSkeleton and writing defaults..

Benjamin Meyer ben at meyerhome.net
Mon Sep 29 15:08:11 BST 2008

On Sep 19, 2008, at 5:54 PM, David Faure wrote:

> On Thursday 18 September 2008, Aaron J. Seigo wrote:
>> any useful ramifications of not writing out the defaults as defined  
>> in the
>> KConfigSkeleton object
> Yes. The whole point of not writing out a default value, is that you  
> can
> change that default value later on (e.g. by upgrading your  
> application,
> or by changing a KDE-wide setting), and it will have an effect on  
> all those
> instances where the default value was still used.
> I think this has been the first use of revertToDefault: toolbar icon  
> size.
> If you change your toolbar icon size globally in KDE, then you expect
> all normal-sized icons to scale up; not "only those for which I  
> haven't
> changed the size one day 5 years ago, and then I changed it back to
> the default".
> -- 
> David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
> Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org 
> ).

Also for many applications there will be no settings file (at least  
back then) which reduces clutter on the home directory and reduces  
startup time.

-Benjamin Meyer

More information about the kde-core-devel mailing list