summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/addressbook/addresspluginconfig.cpp12
-rw-r--r--core/pim/today/plugins/addressbook/addresspluginconfig.h5
-rw-r--r--core/pim/today/plugins/addressbook/addresspluginwidget.cpp3
-rw-r--r--core/pim/today/plugins/addressbook/addresspluginwidget.h1
4 files changed, 19 insertions, 2 deletions
diff --git a/core/pim/today/plugins/addressbook/addresspluginconfig.cpp b/core/pim/today/plugins/addressbook/addresspluginconfig.cpp
index 686d72c..f00cffe 100644
--- a/core/pim/today/plugins/addressbook/addresspluginconfig.cpp
+++ b/core/pim/today/plugins/addressbook/addresspluginconfig.cpp
@@ -63,2 +63,10 @@ AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char*
63 63
64 QHBox *box4 = new QHBox( this );
65
66 QLabel* colorLabel = new QLabel( box4, "" );
67 colorLabel->setText( tr( "Set Entry Color \n(restart Today \nafter change!)" ) );
68
69 entryColor = new OColorButton( box4, red, "entryColor" );
70 QWhatsThis::add( entryColor , tr( "What color should be used for shown birthdays/anniversaries?" ) );
71
64 layout->addWidget( box1 ); 72 layout->addWidget( box1 );
@@ -66,2 +74,3 @@ AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char*
66 layout->addWidget( box3 ); 74 layout->addWidget( box3 );
75 layout->addWidget( box4 );
67 76
@@ -79,2 +88,3 @@ void AddressBookPluginConfig::readConfig() {
79 SpinDaysClip->setValue( m_daysLookAhead ); 88 SpinDaysClip->setValue( m_daysLookAhead );
89 m_entryColor = cfg.readEntry( "entrycolor", Qt::red.name() );
80} 90}
@@ -91,2 +101,4 @@ void AddressBookPluginConfig::writeConfig() {
91 cfg.writeEntry( "dayslookahead", m_daysLookAhead ); 101 cfg.writeEntry( "dayslookahead", m_daysLookAhead );
102 m_entryColor = entryColor->color().name();
103 cfg.writeEntry( "entrycolor", m_entryColor );
92 cfg.write(); 104 cfg.write();
diff --git a/core/pim/today/plugins/addressbook/addresspluginconfig.h b/core/pim/today/plugins/addressbook/addresspluginconfig.h
index 6f128d4..54c8b4f 100644
--- a/core/pim/today/plugins/addressbook/addresspluginconfig.h
+++ b/core/pim/today/plugins/addressbook/addresspluginconfig.h
@@ -25,2 +25,3 @@
25#include <opie/todayconfigwidget.h> 25#include <opie/todayconfigwidget.h>
26#include <opie/ocolorbutton.h>
26 27
@@ -45,2 +46,3 @@ private:
45 QSpinBox* SpinDaysClip; 46 QSpinBox* SpinDaysClip;
47 OColorButton* entryColor;
46 48
@@ -52,3 +54,4 @@ private:
52 int m_daysLookAhead; 54 int m_daysLookAhead;
53 55 // Entry Color
56 QString m_entryColor;
54}; 57};
diff --git a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp
index 0d4cec8..c81beee 100644
--- a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp
+++ b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp
@@ -73,2 +73,3 @@ void AddressBookPluginWidget::readConfig() {
73 m_daysLookAhead = cfg.readNumEntry( "dayslookahead", 14 ); 73 m_daysLookAhead = cfg.readNumEntry( "dayslookahead", 14 );
74 m_entryColor = cfg.readEntry("entrycolor", Qt::red.name() );
74} 75}
@@ -117,3 +118,3 @@ void AddressBookPluginWidget::getAddress() {
117 118
118 output += "<font color=#e00000><b>-" + (*m_it).fullName() 119 output += "<font color=" + m_entryColor + "><b>-" + (*m_it).fullName()
119 + " (" 120 + " ("
diff --git a/core/pim/today/plugins/addressbook/addresspluginwidget.h b/core/pim/today/plugins/addressbook/addresspluginwidget.h
index 75e223a..fa464de 100644
--- a/core/pim/today/plugins/addressbook/addresspluginwidget.h
+++ b/core/pim/today/plugins/addressbook/addresspluginwidget.h
@@ -54,2 +54,3 @@ private:
54 int m_daysLookAhead; 54 int m_daysLookAhead;
55 QString m_entryColor;
55}; 56};