summaryrefslogtreecommitdiffabout
path: root/microkde/kconfig.cpp
authorzautrix <zautrix>2005-02-07 14:16:32 (UTC)
committer zautrix <zautrix>2005-02-07 14:16:32 (UTC)
commit5fb1e954dd606d0c8b2bd88ff50dcc3284fa09b6 (patch) (side-by-side diff)
tree481cf4af9f7f1f46c1c7cf92be7545f555da000a /microkde/kconfig.cpp
parentd3b63db1205720e0a78cdc1a3cd11b2d02c98c6a (diff)
downloadkdepimpi-5fb1e954dd606d0c8b2bd88ff50dcc3284fa09b6.zip
kdepimpi-5fb1e954dd606d0c8b2bd88ff50dcc3284fa09b6.tar.gz
kdepimpi-5fb1e954dd606d0c8b2bd88ff50dcc3284fa09b6.tar.bz2
utf8 fix
Diffstat (limited to 'microkde/kconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kconfig.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/microkde/kconfig.cpp b/microkde/kconfig.cpp
index 862166d..b9cf2f1 100644
--- a/microkde/kconfig.cpp
+++ b/microkde/kconfig.cpp
@@ -141,33 +141,33 @@ QStringList KConfig::readListEntry( const QString &key )
bool KConfig::readBoolEntry( const QString &key, bool def )
{
QMap<QString,bool>::ConstIterator it = mBoolMap.find( mGroup + key );
if ( it == mBoolMap.end() ) {
return def;
}
return *it;
}
QColor KConfig::readColorEntry( const QString & e, QColor *def )
{
QStringList l;
- l = readListEntry( e );
+ l = readListEntry( e.utf8() );
if (l.count() != 3 ) {
if ( def )
return *def;
else
return QColor();
}
QColor c ( l[0].toInt(), l[1].toInt(), l[2].toInt() );
return c;
}
QFont KConfig::readFontEntry( const QString & e, QFont *def )
{
QStringList font = readListEntry( e );
if ( font.isEmpty() )
return *def;
QFont f;
@@ -225,33 +225,33 @@ void KConfig::writeEntry( const QString &key, const QStringList &value )
mDirty = true;
}
void KConfig::writeEntry( const QString &key, bool value)
{
mBoolMap.insert( mGroup + key, value );
mDirty = true;
}
void KConfig::writeEntry( const QString & e, const QColor & c )
{
QStringList l;
l.append( QString::number ( c.red() ) );
l.append( QString::number ( c.green() ) );
l.append( QString::number ( c.blue() ) );
- writeEntry( e, l );
+ writeEntry( e.utf8(), l );
}
void KConfig::writeEntry( const QString & e, const QSize & s )
{
QValueList<int> intlist;
intlist << s.width() << s.height();
writeEntry( e, intlist );
}
void KConfig::writeEntry( const QString & e , const QFont & f )
{
QStringList font;
font.append( f.family());
font.append( (!f.bold ()?"nonbold":"bold") );
font.append( QString::number ( f.pointSize () ) );
font.append( !f.italic ()?"nonitalic":"italic" );