summaryrefslogtreecommitdiff
path: root/core/pim/today/plugins/addressbook/addresspluginconfig.cpp
Unidiff
Diffstat (limited to 'core/pim/today/plugins/addressbook/addresspluginconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/addressbook/addresspluginconfig.cpp12
1 files changed, 12 insertions, 0 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
@@ -60,11 +60,20 @@ AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char*
60 SpinDaysClip = new QSpinBox( box3, "SpinDays" ); 60 SpinDaysClip = new QSpinBox( box3, "SpinDays" );
61 SpinDaysClip->setMaxValue( 200 ); 61 SpinDaysClip->setMaxValue( 200 );
62 QWhatsThis::add( SpinDaysClip , tr( "How many days we should search forward" ) ); 62 QWhatsThis::add( SpinDaysClip , tr( "How many days we should search forward" ) );
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 );
65 layout->addWidget( box2 ); 73 layout->addWidget( box2 );
66 layout->addWidget( box3 ); 74 layout->addWidget( box3 );
75 layout->addWidget( box4 );
67 76
68 readConfig(); 77 readConfig();
69} 78}
70 79
@@ -76,8 +85,9 @@ void AddressBookPluginConfig::readConfig() {
76 m_maxCharClip = cfg.readNumEntry( "maxcharclip", 38 ); 85 m_maxCharClip = cfg.readNumEntry( "maxcharclip", 38 );
77 SpinBoxClip->setValue( m_maxCharClip ); 86 SpinBoxClip->setValue( m_maxCharClip );
78 m_daysLookAhead = cfg.readNumEntry( "dayslookahead", 14 ); 87 m_daysLookAhead = cfg.readNumEntry( "dayslookahead", 14 );
79 SpinDaysClip->setValue( m_daysLookAhead ); 88 SpinDaysClip->setValue( m_daysLookAhead );
89 m_entryColor = cfg.readEntry( "entrycolor", Qt::red.name() );
80} 90}
81 91
82 92
83void AddressBookPluginConfig::writeConfig() { 93void AddressBookPluginConfig::writeConfig() {
@@ -88,8 +98,10 @@ void AddressBookPluginConfig::writeConfig() {
88 m_maxCharClip = SpinBoxClip->value(); 98 m_maxCharClip = SpinBoxClip->value();
89 cfg.writeEntry( "maxcharclip", m_maxCharClip ); 99 cfg.writeEntry( "maxcharclip", m_maxCharClip );
90 m_daysLookAhead = SpinDaysClip->value(); 100 m_daysLookAhead = SpinDaysClip->value();
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();
93} 105}
94 106
95 107