[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: kconfigbase
From: m_elter () t-online ! de (Matthias Elter)
Date: 2000-04-12 19:55:29
[Download RAW message or body]
Matthias Kalle Dalheimer wrote:
>
> Matthias Elter wrote:
> >
> > Hi
> >
> > I miss something like:
> >
> > void deleteEntry(const QString& key);
> > void deleteGroup(const QString& group);
> >
> > ... in KConfigBase.
> >
> > Any particular reasons this has not been implemented for?
> >
> > Greetings,
> > Matthias
> >
> > P.S.: I use a new save/restore mechanism to make kickerrc more robust,
> > but can't clean up obsolete Entries. This is not ciritcal but polutes
> > the config file.
> >
>
> That's because of the default logic inherent in KConfig. Where would you
> want to delete the entry from? Only the user's config file? Then the
> entry might be picked up from the system-wide file. Or from both? Ooops,
> you cannot write to the system-wide file. Exactly because of these
> problems (and the ill-defined nature of deletions in default logic),
> there is no deletion in KConfig.
I realised this minutes after hitting the send button.
Sorry. ;-)
> However, if you really need this, you can use KSimpleConfig which uses
> exactly _one_ config file and thus does not have these problems.
Bye,
Matthias
--
Matthias Elter
elter@kde.org
me@caldera.de
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic