kdelibs/kdecore

David Faure dfaure at klaralvdalens-datakonsult.se
Tue Sep 23 18:06:31 BST 2003


On Tuesday 23 September 2003 17:11, Waldo Bastian wrote:
> On Tuesday 23 September 2003 11:42, Matthias Kretz wrote:
> > On Tuesday September 23 2003 11:19, Waldo Bastian wrote:
> > > Maybe KConfig should
> > > provide a factory for refcounted config objects for such cases?
> >
> > Yes, that would be great. The same problem happens with embedding KCMs in
> > your app. The KCM cannot reuse the KConfig object (because
> > KGlobal::config() is not always the right config object and if you want to
> > keep the flexibility to load the KCM somewhere else using KGlobal::config()
> > in a KCM is a no-no). So it would be good to get the same KConfig object as
> > is used in the application if the KCM is loaded in-process, else keeping
> > sync is a mess.
> 
> Please review the following patch.

Excellent! This is exactly idea number two that I discussed with Ian in Nove Hrady
(number one being the timestamp to avoid reloading before saving, which is in now).

Patch looks good, please commit.

-- 
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions




More information about the kde-core-devel mailing list