summaryrefslogtreecommitdiffabout
path: root/microkde
authorzautrix <zautrix>2004-07-08 09:52:31 (UTC)
committer zautrix <zautrix>2004-07-08 09:52:31 (UTC)
commit40cf8102d2f38b5e952b889ffbd19cb1d428fc9b (patch) (side-by-side diff)
treed6b0a7855560b68910e1e63a3dc114316b653433 /microkde
parente8628e6e3e98f2276fb69bbc545866cc9a022228 (diff)
downloadkdepimpi-40cf8102d2f38b5e952b889ffbd19cb1d428fc9b.zip
kdepimpi-40cf8102d2f38b5e952b889ffbd19cb1d428fc9b.tar.gz
kdepimpi-40cf8102d2f38b5e952b889ffbd19cb1d428fc9b.tar.bz2
Fix in kconfig::readfont
Diffstat (limited to 'microkde') (more/less context) (show 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 71db891..737b3f2 100644
--- a/microkde/kconfig.cpp
+++ b/microkde/kconfig.cpp
@@ -130,33 +130,33 @@ QColor KConfig::readColorEntry( const QString & e, QColor *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;
f.setFamily( font[0]);
f.setBold ( font[1] == "bold");
f.setPointSize ( font[2].toInt());
- f.setItalic( font[1] == "italic" );
+ f.setItalic( font[3] == "italic" );
return f;
}
QDateTime KConfig::readDateTimeEntry( const QString &key, const QDateTime *def )
{
QMap<QString,QDateTime>::ConstIterator it = mDateTimeMap.find( mGroup + key );
if ( it == mDateTimeMap.end() ) {
if ( def ) return *def;
else return QDateTime();
}
return *it;
}
//US added method