author | eilers <eilers> | 2003-01-05 14:50:40 (UTC) |
---|---|---|
committer | eilers <eilers> | 2003-01-05 14:50:40 (UTC) |
commit | f887403341dd82d46d26695acc308cc8801cd6aa (patch) (side-by-side diff) | |
tree | be64ebf1809706120972faac630577add4ad6d5e /core/pim/today/plugins/addressbook/addresspluginwidget.cpp | |
parent | 3eecce3109b543a5abd6a36a420fa3f53cc23023 (diff) | |
download | opie-f887403341dd82d46d26695acc308cc8801cd6aa.zip opie-f887403341dd82d46d26695acc308cc8801cd6aa.tar.gz opie-f887403341dd82d46d26695acc308cc8801cd6aa.tar.bz2 |
Color for entries is now customizeable
Diffstat (limited to 'core/pim/today/plugins/addressbook/addresspluginwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/today/plugins/addressbook/addresspluginwidget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ -71,6 +71,7 @@ void AddressBookPluginWidget::readConfig() { m_maxLinesTask = cfg.readNumEntry( "maxlinestask", 5 ); m_maxCharClip = cfg.readNumEntry( "maxcharclip", 38 ); m_daysLookAhead = cfg.readNumEntry( "dayslookahead", 14 ); + m_entryColor = cfg.readEntry("entrycolor", Qt::red.name() ); } @@ -115,7 +116,7 @@ void AddressBookPluginWidget::getAddress() { if ( QDate::currentDate().daysTo(destdate) < 0 ) destdate.setYMD( QDate::currentDate().year()+1, destdate.month(), destdate.day() ); - output += "<font color=#e00000><b>-" + (*m_it).fullName() + output += "<font color=" + m_entryColor + "><b>-" + (*m_it).fullName() + " (" + QString::number(QDate::currentDate().daysTo(destdate)) + " Days) </b></font><br>"; |