config option for KDirWatch method

Matthew Woehlke mw_triad at users.sourceforge.net
Mon Aug 6 16:45:48 BST 2007


Andreas Pakulat wrote:
> +  KConfig config("kdeglobals");

Any reason you do not use KGlobal::config()?

> +  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?

Why not merge the two lines into this?

   KConfigGroup group(KGlobal::config(), "KDirWatch");

-- 
Matthew
"Braaaaaaaaiins!" -- Zombies





More information about the kde-core-devel mailing list