Diffstat (limited to 'core/settings/launcher/tabssettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/settings/launcher/tabssettings.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/settings/launcher/tabssettings.cpp b/core/settings/launcher/tabssettings.cpp index fc2d2c9..ae78733 100644 --- a/core/settings/launcher/tabssettings.cpp +++ b/core/settings/launcher/tabssettings.cpp @@ -115,19 +115,21 @@ void TabsSettings::readTabSettings ( ) tc. m_bg_image = cfg. readEntry ( "BackgroundImage", "wallpaper/opie" ); tc. m_bg_color = cfg. readEntry ( "BackgroundColor" ); tc. m_text_color = cfg. readEntry ( "TextColor" ); QStringList f = cfg. readListEntry ( "Font", ',' ); if ( f. count ( ) == 4 ) { tc. m_font_family = f [0]; tc. m_font_size = f [1]. toInt ( ); + tc. m_font_style = f [2]; } else { tc. m_font_family = font ( ). family ( ); tc. m_font_size = font ( ). pointSize ( ); + tc. m_font_style = "Regular"; } m_tabs [*it] = tc; } } void TabsSettings::accept ( ) { @@ -153,17 +155,17 @@ void TabsSettings::accept ( ) QCopEnvelope e ( "QPE/Launcher", "setTabView(QString,int)" ); e << *it << tc. m_view; cfg. writeEntry ( "BackgroundImage", tc. m_bg_image ); cfg. writeEntry ( "BackgroundColor", tc. m_bg_color ); cfg. writeEntry ( "TextColor", tc. m_text_color ); - QString f = tc. m_font_family + "," + QString::number ( tc. m_font_size ) + ",50,0"; + QString f = tc. m_font_family + "," + QString::number ( tc. m_font_size ) + "," + tc. m_font_style + ",0"; cfg. writeEntry ( "Font", f ); QCopEnvelope be ( "QPE/Launcher", "setTabBackground(QString,int,QString)" ); switch ( tc. m_bg_type ) { case TabConfig::Ruled: cfg.writeEntry( "BackgroundType", "Ruled" ); be << *it << tc. m_bg_type << QString(""); break; |