config option for KDirWatch method
Andreas Pakulat
apaku at gmx.de
Mon Aug 6 18:16:31 BST 2007
On 06.08.07 10:45:48, Matthew Woehlke wrote:
> Andreas Pakulat wrote:
> >+ KConfig config("kdeglobals");
>
> Any reason you do not use KGlobal::config()?
Well, I understood that as if KGlobal::config() would return me
kdeveloprc when used in kdevelop and katerc when used in kate.
> >+ KConfigGroup group("KDirWatch",&config);
>
> According to
> http://www.englishbreakfastnetwork.org/apidocs/apidox-kde-4.0/kdelibs-apidocs/kdecore/html/classKConfigGroup.html,
> you have the ctor arguments backwards?
Thats what you get when you don't compile the code :P
> Why not merge the two lines into this?
>
> KConfigGroup group(KGlobal::config(), "KDirWatch");
If somebody can confirm that KGlobal::config() == KConfig("kdeglobals")
sure.
Andreas
--
Your life would be very empty if you had nothing to regret.
More information about the kde-core-devel
mailing list