summaryrefslogtreecommitdiffabout
path: root/microkde/kconfig.cpp
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/kconfig.cpp
parente8628e6e3e98f2276fb69bbc545866cc9a022228 (diff)
downloadkdepimpi-40cf8102d2f38b5e952b889ffbd19cb1d428fc9b.zip
kdepimpi-40cf8102d2f38b5e952b889ffbd19cb1d428fc9b.tar.gz
kdepimpi-40cf8102d2f38b5e952b889ffbd19cb1d428fc9b.tar.bz2
Fix in kconfig::readfont
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 71db891..737b3f2 100644
--- a/microkde/kconfig.cpp
+++ b/microkde/kconfig.cpp
@@ -122,49 +122,49 @@ bool KConfig::readBoolEntry( const QString &key, bool def )
QColor KConfig::readColorEntry( const QString & e, QColor *def )
{
QStringList l;
l = readListEntry( e );
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;
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
void KConfig::writeEntry( const QString &key, const QValueList<int> &value)
{
QStringList valuesAsStrings;
QValueList<int>::ConstIterator it;
for( it = value.begin(); it != value.end(); ++it )
{