summaryrefslogtreecommitdiffabout
path: root/korganizer/koagendaitem.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/koagendaitem.cpp') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/koagendaitem.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp
index 1be0aca..e660c32 100644
--- a/korganizer/koagendaitem.cpp
+++ b/korganizer/koagendaitem.cpp
@@ -137,3 +137,3 @@ void KOAgendaItem::init ( Incidence *incidence, QDate qd )
setBackgroundColor( mBackgroundColor );
-
+ mWhiteText = (mBackgroundColor.red() + mBackgroundColor.green() + mBackgroundColor.blue() < 250);
mConflictItems.clear();
@@ -407,4 +407,3 @@ void KOAgendaItem::paintMe( bool selected, QPainter* paint )
}
- int colsum = mBackgroundColor.red() + mBackgroundColor.green() + mBackgroundColor.blue();
- if ( colsum < 250 )
+ if ( mWhiteText )
paint->setPen ( white);