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.cpp | 12 |
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 @@ -63,2 +63,10 @@ AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* + QHBox *box4 = new QHBox( this ); + + QLabel* colorLabel = new QLabel( box4, "" ); + colorLabel->setText( tr( "Set Entry Color \n(restart Today \nafter change!)" ) ); + + entryColor = new OColorButton( box4, red, "entryColor" ); + QWhatsThis::add( entryColor , tr( "What color should be used for shown birthdays/anniversaries?" ) ); + layout->addWidget( box1 ); @@ -66,2 +74,3 @@ AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* layout->addWidget( box3 ); + layout->addWidget( box4 ); @@ -79,2 +88,3 @@ void AddressBookPluginConfig::readConfig() { SpinDaysClip->setValue( m_daysLookAhead ); + m_entryColor = cfg.readEntry( "entrycolor", Qt::red.name() ); } @@ -91,2 +101,4 @@ void AddressBookPluginConfig::writeConfig() { cfg.writeEntry( "dayslookahead", m_daysLookAhead ); + m_entryColor = entryColor->color().name(); + cfg.writeEntry( "entrycolor", m_entryColor ); cfg.write(); |