KConfig
Benjamin Meyer
kde-optimize@mail.kde.org
Thu, 9 Jan 2003 19:50:25 -0500
On Thursday 09 January 2003 12:31 pm, Waldo Bastian wrote:
> On Thursday 09 January 2003 16:03, Benjamin Meyer wrote:
> > A quick browse through: ~/.kde/share/config/ contains
> > quite a bit of settings the vast majority of which are default values=
=2E=20
> > So making KConfig only save when the value is not the same as the def=
ault
> > value would be a good thing.
>
> It's a bit hairy, since the default value is only provided at read-time=
=2E We
> would have to convert it from its C++ type to a string in the read call=
so
> that we can compare it later on in the write call. I don't mind doing t=
hat,
> but I doubt if it is going to be any faster.
Having to convert to a QString every time might even make it slower. Wou=
ld=20
you really have to convert it? I don't know the inners of KConfig, but c=
an't=20
you for example simply save the default value in its native value so that=
it=20
could be compared later?
<group><item><value><type><default>
-Benjamin Meyer