diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-07 22:02:54 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-07 22:02:54 +0000 |
commit | e2e6ec17cf1177e4bb81609e8e884e000819dfdc (patch) | |
tree | b7491d60010c277ee80c223e293b4caac6e8b69e /kopete/libkopete/kopeteprefs.cpp | |
parent | f815711d039485259835e246103d3e7f8f3d7203 (diff) | |
download | tdenetwork-e2e6ec17cf1177e4bb81609e8e884e000819dfdc.tar.gz tdenetwork-e2e6ec17cf1177e4bb81609e8e884e000819dfdc.zip |
* Part 2/2 of Chakra patches
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1172713 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/libkopete/kopeteprefs.cpp')
-rw-r--r-- | kopete/libkopete/kopeteprefs.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/kopete/libkopete/kopeteprefs.cpp b/kopete/libkopete/kopeteprefs.cpp index 2c974f7f..6e9072d0 100644 --- a/kopete/libkopete/kopeteprefs.cpp +++ b/kopete/libkopete/kopeteprefs.cpp @@ -127,6 +127,7 @@ void KopetePrefs::load() } config->setGroup("ContactList"); + setThemeURL(config->readEntry("ThemeURL")); int n = metaObject()->findProperty( "contactListDisplayMode" ); TQString value = config->readEntry("DisplayMode",TQString::fromLatin1("Default")); mContactListDisplayMode = (ContactDisplayMode)metaObject()->property( n )->keyToValue( value.latin1() ); @@ -137,6 +138,7 @@ void KopetePrefs::load() mContactListIndentContacts = config->readBoolEntry("IndentContacts", false); mContactListUseCustomFonts = config->readBoolEntry("UseCustomFonts", false); TQFont font = KGlobalSettings::generalFont(); + mContactListGroupFont = config->readFontEntry("GroupFont", &font); mContactListNormalFont = config->readFontEntry("NormalFont", &font); if ( font.pixelSize() != -1 ) font.setPixelSize( (font.pixelSize() * 3) / 4 ); @@ -226,12 +228,14 @@ void KopetePrefs::save() config->writeEntry("ToolTipContents", mToolTipContents); config->setGroup("ContactList"); + config->writeEntry("ThemeURL", mThemeURL); int n = metaObject()->findProperty( "contactListDisplayMode" ); config->writeEntry("DisplayMode", metaObject()->property( n )->valueToKey( mContactListDisplayMode )); n = metaObject()->findProperty( "contactListIconMode" ); config->writeEntry("IconMode", metaObject()->property( n )->valueToKey( mContactListIconMode )); config->writeEntry("IndentContacts", mContactListIndentContacts); config->writeEntry("UseCustomFonts", mContactListUseCustomFonts); + config->writeEntry("GroupFont", mContactListGroupFont); config->writeEntry("NormalFont", mContactListNormalFont); config->writeEntry("SmallFont", mContactListSmallFont); config->writeEntry("GroupNameColor", mContactListGroupNameColor); @@ -414,6 +418,12 @@ void KopetePrefs::setSoundIfAway(bool value) mSoundIfAway = value; } +void KopetePrefs::setThemeURL(const TQString &path) +{ + if( path != mThemeURL ) mContactListAppearanceChanged = true; + mThemeURL = path; +} + void KopetePrefs::setStylePath(const TQString &stylePath) { if(mStylePath != stylePath) mStylePathChanged = true; @@ -584,6 +594,12 @@ void KopetePrefs::setContactListUseCustomFonts( bool v ) mContactListUseCustomFonts = v; } +void KopetePrefs::setContactListCustomGroupFont( const TQFont & v ) +{ + if( v != mContactListGroupFont ) mContactListAppearanceChanged = true; + mContactListGroupFont = v; +} + void KopetePrefs::setContactListCustomNormalFont( const TQFont & v ) { if( v != mContactListNormalFont ) mContactListAppearanceChanged = true; |