summaryrefslogtreecommitdiffabout
path: root/microkde/kconfig.cpp
authorzautrix <zautrix>2005-07-02 17:36:09 (UTC)
committer zautrix <zautrix>2005-07-02 17:36:09 (UTC)
commit8eea5713638412f5613be51b339f0452f629705c (patch) (side-by-side diff)
tree6c5652cf91f3b9ef6b46a94c4e7d49c10d241d9f /microkde/kconfig.cpp
parent0233482f5f4baf7a0af45229b02c5deaab17a412 (diff)
downloadkdepimpi-8eea5713638412f5613be51b339f0452f629705c.zip
kdepimpi-8eea5713638412f5613be51b339f0452f629705c.tar.gz
kdepimpi-8eea5713638412f5613be51b339f0452f629705c.tar.bz2
fixi
Diffstat (limited to 'microkde/kconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kconfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/microkde/kconfig.cpp b/microkde/kconfig.cpp
index 821e386..940196e 100644
--- a/microkde/kconfig.cpp
+++ b/microkde/kconfig.cpp
@@ -44,49 +44,49 @@ void KConfig::setGroup( const QString &group )
mGroup = group;
if ( mGroup.right( 1 ) != "/" ) mGroup += "/";
}
//US
QString KConfig::group() const {
return mGroup;
}
//US added method
QValueList<int> KConfig::readIntListEntry( const QString & key)
{
// qDebug("KConfig::readIntListEntry key=%s:", key.latin1());
QValueList<int> result;
QMap<QString,QString>::ConstIterator mit = mStringMap.find( mGroup + key );
if ( mit == mStringMap.end() ) {
return result;
}
- QStringList valuesAsStrings = QStringList::split(":@:", *mit );
+ QStringList valuesAsStrings = QStringList::split(":", *mit );
bool ok = false;
bool ok2 = true;
int val;
for ( QStringList::Iterator sit = valuesAsStrings.begin(); sit != valuesAsStrings.end(); ++sit ) {
val = (*sit).toInt(&ok);
result << val;
if (ok == false) {
//qDebug("KConfig::readIntListEntry str=%s , int=%n:", (*sit).latin1(), &val);
ok2 = false;
}
}
if (ok2 == false)
{
qDebug("KConfig::readIntListEntry: error while reading one of the intvalues.");
}
return result;
}
int KConfig::readNumEntry( const QString & key, int def )
{