From d7859bf6df42c36f87ecaa560754b3b3b3c2e78e Mon Sep 17 00:00:00 2001 From: sandman Date: Sun, 22 Dec 2002 17:19:22 +0000 Subject: use the new Config::hasGroup method instead of a custom Config class --- (limited to 'noncore/styles') diff --git a/noncore/styles/theme/othemebase.cpp b/noncore/styles/theme/othemebase.cpp index acac847..62b3a11 100644 --- a/noncore/styles/theme/othemebase.cpp +++ b/noncore/styles/theme/othemebase.cpp @@ -81,18 +81,6 @@ union kthemeKey{ unsigned int cacheKey; }; -class MyConfig : public Config -{ -public: - MyConfig ( const QString &f, Domain d ) : Config ( f, d ) - { } - - bool hasGroup ( const QString &gname ) const - { - QMap< QString, ConfigGroup>::ConstIterator it = groups. find ( gname ); - return ( it != groups.end() ); - } -}; void OThemeBase::generateBorderPix( int i ) { @@ -272,7 +260,7 @@ void OThemeBase::readConfig( Qt::GUIStyle /*style*/ ) configFileName = cfg. readEntry ( "Theme", "default" ); } - MyConfig config( configFilePath + "/themes/" + configFileName + ".themerc" , Config::File ); + Config config( configFilePath + "/themes/" + configFileName + ".themerc" , Config::File ); // printf ( "Opened config file: %s\n", ( configFilePath + "/themes/" + configFileName + ".themerc" ). ascii()); -- cgit v0.9.0.2