author | zautrix <zautrix> | 2004-07-08 11:20:17 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-08 11:20:17 (UTC) |
commit | 3f84322a2da502f95be386372da9f75ed17df574 (patch) (unidiff) | |
tree | 9a4ccd4568c38d60bb1efa7a6713f4d0914aae86 /microkde/kconfig.cpp | |
parent | 40cf8102d2f38b5e952b889ffbd19cb1d428fc9b (diff) | |
download | kdepimpi-3f84322a2da502f95be386372da9f75ed17df574.zip kdepimpi-3f84322a2da502f95be386372da9f75ed17df574.tar.gz kdepimpi-3f84322a2da502f95be386372da9f75ed17df574.tar.bz2 |
Fixes for resource plugin handling on wintendo
-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 | |||
@@ -15,6 +15,6 @@ KConfig::KConfig( const QString &fileName ) | |||
15 | : mFileName( fileName ), mDirty( false ) | 15 | : mFileName( fileName ), mDirty( false ) |
16 | { | 16 | { |
17 | kdDebug() << "KConfig::KConfig(): '" << fileName << "'" << endl; | 17 | |
18 | 18 | mTempGroup = ""; | |
19 | load(); | 19 | load(); |
20 | 20 | ||
@@ -26,8 +26,20 @@ KConfig::~KConfig() | |||
26 | sync(); | 26 | sync(); |
27 | } | 27 | } |
28 | // we need the temp group for plugins on windows | ||
29 | void KConfig::setTempGroup( const QString &group ) | ||
30 | { | ||
31 | mTempGroup = group; | ||
32 | |||
33 | if ( mTempGroup.right( 1 ) != "/" ) mTempGroup += "/"; | ||
34 | } | ||
35 | |||
36 | |||
37 | QString KConfig::tempGroup() const { | ||
38 | return mTempGroup; | ||
39 | } | ||
28 | 40 | ||
29 | void KConfig::setGroup( const QString &group ) | 41 | void KConfig::setGroup( const QString &group ) |
30 | { | 42 | { |
31 | kdDebug() << "KConfig::setGroup(): '" << group << "'" << endl; | 43 | |
32 | 44 | ||
33 | mGroup = group; | 45 | mGroup = group; |
@@ -70,5 +82,5 @@ QValueList<int> KConfig::readIntListEntry( const QString & key) | |||
70 | if (ok2 == false) | 82 | if (ok2 == false) |
71 | { | 83 | { |
72 | kdDebug() << "KConfig::readIntListEntry: error while reading one of the intvalues." << endl; | 84 | |
73 | qDebug("KConfig::readIntListEntry: error while reading one of the intvalues."); | 85 | qDebug("KConfig::readIntListEntry: error while reading one of the intvalues."); |
74 | } | 86 | } |
@@ -228,5 +240,5 @@ void KConfig::writeEntry( const QString &key, const QDateTime &dt ) | |||
228 | void KConfig::load() | 240 | void KConfig::load() |
229 | { | 241 | { |
230 | kdDebug() << "KConfig::load(): " << mFileName << endl; | 242 | |
231 | 243 | ||
232 | QFile f( mFileName ); | 244 | QFile f( mFileName ); |