summaryrefslogtreecommitdiffabout
path: root/libkdepim
authorzautrix <zautrix>2005-04-13 23:54:32 (UTC)
committer zautrix <zautrix>2005-04-13 23:54:32 (UTC)
commit5ea16ef9058a21016402dd5affc0a7f82857e606 (patch) (side-by-side diff)
tree3c147e24c3bd51208a8055a94e4a487a1708d337 /libkdepim
parent93b536533e1c908085adb61553907615c31786c0 (diff)
downloadkdepimpi-5ea16ef9058a21016402dd5affc0a7f82857e606.zip
kdepimpi-5ea16ef9058a21016402dd5affc0a7f82857e606.tar.gz
kdepimpi-5ea16ef9058a21016402dd5affc0a7f82857e606.tar.bz2
fix
Diffstat (limited to 'libkdepim') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/kcmconfigs/kdepimconfigwidget.cpp11
-rw-r--r--libkdepim/kpimglobalprefs.cpp5
-rw-r--r--libkdepim/kpimglobalprefs.h1
3 files changed, 17 insertions, 0 deletions
diff --git a/libkdepim/kcmconfigs/kdepimconfigwidget.cpp b/libkdepim/kcmconfigs/kdepimconfigwidget.cpp
index d62d9f9..759b29d 100644
--- a/libkdepim/kcmconfigs/kdepimconfigwidget.cpp
+++ b/libkdepim/kcmconfigs/kdepimconfigwidget.cpp
@@ -119,2 +119,13 @@ void KDEPIMConfigWidget::setupStoreTab()
{
+ QVBox *colorPage = new QVBox( this );
+ tabWidget->addTab( colorPage, i18n( "Colors" ) );
+ QWidget* cw = new QWidget( colorPage );
+ KPrefsWidColor *holidayColor =
+ addWidColor(i18n("Alternate background"),
+ &(KPimGlobalPrefs::instance()->mAlternateColor),cw);
+ QHBoxLayout *topLayout = new QHBoxLayout(cw);
+ topLayout->addWidget(holidayColor->label());
+ topLayout->addWidget( (QWidget* )holidayColor->button());
+
+
QVBox *storePage = new QVBox( this );
diff --git a/libkdepim/kpimglobalprefs.cpp b/libkdepim/kpimglobalprefs.cpp
index a09b278..873f0eb 100644
--- a/libkdepim/kpimglobalprefs.cpp
+++ b/libkdepim/kpimglobalprefs.cpp
@@ -62,2 +62,6 @@ KPimGlobalPrefs::KPimGlobalPrefs( const QString &name )
+ KPrefs::setCurrentGroup("Colors");
+ addItemColor("AlternateBGcolor",&mAlternateColor,KGlobalSettings::alternateBackgroundColor());
+
+
KPrefs::setCurrentGroup("Time & Date");
@@ -190,2 +194,3 @@ void KPimGlobalPrefs::setGlobalConfig()
KGlobal::locale()->setTimezone( mTimeZoneId, mTimeZoneAdd30min );
+ KGlobalSettings::setAlternateBackgroundColor(mAlternateColor);
diff --git a/libkdepim/kpimglobalprefs.h b/libkdepim/kpimglobalprefs.h
index bf17338..36cc25a 100644
--- a/libkdepim/kpimglobalprefs.h
+++ b/libkdepim/kpimglobalprefs.h
@@ -104,2 +104,3 @@ class KPimGlobalPrefs : public KPrefs
QFont mApplicationFont;
+ QColor mAlternateColor;