KConfig Bug?

Benjamin Meyer ben at meyerhome.net
Thu Jun 26 17:15:49 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> When you write them to kdeglobals (only used by KDE-wide settings
> typically),

Oh, so that isn't refuring to the specific application global file?

> you can write the entry with:
> 	writeEntry(key, value, true /* persistent */, true /* global */, false /*
> locale */)
> and you can later delete it with:
> 	deleteEntry(key, value, false /* locale */, true /*global*/);
>
> Which makes me really wonder why you want to use deleteEntry at all
> actually. What are you trying to do?
>
> Cheers,
> Waldo

I am trying to restore the config to the original state (as far as the user is 
concerned).

For example in konsole they use a gobal config to set the toolbar's text to 
"text alongside icons".  In ktoolbar it remembers that "text alongside icons" 
is the default value.  It then may load the current setting of "IconOnly". 
When it comes time to save konsole's settings ktoolbar looks and sees that 
the text is set to "text alongside icons" (the same as the default) and it 
calls deleteEntry() to remove the setting from the local config so that next 
time it is run the default value is loaded.

- -Benjamin Meyer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE++xw11rZ3LTw38vIRAtz7AKCOH3hyntFY3YR2uvTzI2J5+zk7WwCeOKc7
uf8oOG+KfXjEZpOgAZjfAAw=
=DcFh
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list