-rw-r--r-- | microkde/kconfig.cpp | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/microkde/kconfig.cpp b/microkde/kconfig.cpp index 737b3f2..4cbec94 100644 --- a/microkde/kconfig.cpp +++ b/microkde/kconfig.cpp @@ -16,4 +16,4 @@ KConfig::KConfig( const QString &fileName ) { - kdDebug() << "KConfig::KConfig(): '" << fileName << "'" << endl; - + + mTempGroup = ""; load(); @@ -27,2 +27,14 @@ KConfig::~KConfig() } +// we need the temp group for plugins on windows +void KConfig::setTempGroup( const QString &group ) +{ + mTempGroup = group; + + if ( mTempGroup.right( 1 ) != "/" ) mTempGroup += "/"; +} + + +QString KConfig::tempGroup() const { + return mTempGroup; +} @@ -30,3 +42,3 @@ void KConfig::setGroup( const QString &group ) { - kdDebug() << "KConfig::setGroup(): '" << group << "'" << endl; + @@ -71,3 +83,3 @@ QValueList<int> KConfig::readIntListEntry( const QString & key) { - kdDebug() << "KConfig::readIntListEntry: error while reading one of the intvalues." << endl; + qDebug("KConfig::readIntListEntry: error while reading one of the intvalues."); @@ -229,3 +241,3 @@ void KConfig::load() { - kdDebug() << "KConfig::load(): " << mFileName << endl; + |