From 3f84322a2da502f95be386372da9f75ed17df574 Mon Sep 17 00:00:00 2001 From: zautrix Date: Thu, 08 Jul 2004 11:20:17 +0000 Subject: Fixes for resource plugin handling on wintendo --- (limited to 'microkde/kconfig.cpp') diff --git a/microkde/kconfig.cpp b/microkde/kconfig.cpp index 737b3f2..4cbec94 100644 --- a/microkde/kconfig.cpp +++ b/microkde/kconfig.cpp @@ -14,8 +14,8 @@ QString KConfig::mGroup = ""; KConfig::KConfig( const QString &fileName ) : mFileName( fileName ), mDirty( false ) { - kdDebug() << "KConfig::KConfig(): '" << fileName << "'" << endl; - + + mTempGroup = ""; load(); } @@ -25,10 +25,22 @@ KConfig::~KConfig() { sync(); } +// 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; +} void KConfig::setGroup( const QString &group ) { - kdDebug() << "KConfig::setGroup(): '" << group << "'" << endl; + mGroup = group; @@ -69,7 +81,7 @@ QValueList KConfig::readIntListEntry( const QString & key) if (ok2 == false) { - kdDebug() << "KConfig::readIntListEntry: error while reading one of the intvalues." << endl; + qDebug("KConfig::readIntListEntry: error while reading one of the intvalues."); } @@ -227,7 +239,7 @@ void KConfig::writeEntry( const QString &key, const QDateTime &dt ) void KConfig::load() { - kdDebug() << "KConfig::load(): " << mFileName << endl; + QFile f( mFileName ); if ( !f.open( IO_ReadOnly ) ) { -- cgit v0.9.0.2