ben at meyerhome.net
Thu Jun 26 17:15:49 BST 2003
-----BEGIN PGP SIGNED MESSAGE-----
> When you write them to kdeglobals (only used by KDE-wide settings
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?
I am trying to restore the config to the original state (as far as the user is
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
-----END PGP SIGNATURE-----
More information about the kde-core-devel