summaryrefslogtreecommitdiffabout
path: root/korganizer/koagendaitem.cpp
authorzautrix <zautrix>2005-06-15 10:22:38 (UTC)
committer zautrix <zautrix>2005-06-15 10:22:38 (UTC)
commit13c00953a9d521873b03f861e54e83e33b30bc96 (patch) (side-by-side diff)
tree05bc1f7b6d95b68e0d579e70a487c8a48f250a6f /korganizer/koagendaitem.cpp
parent37175a31a8fa8772403e9588ff3f8bd7de3979cc (diff)
downloadkdepimpi-13c00953a9d521873b03f861e54e83e33b30bc96.zip
kdepimpi-13c00953a9d521873b03f861e54e83e33b30bc96.tar.gz
kdepimpi-13c00953a9d521873b03f861e54e83e33b30bc96.tar.bz2
fixxx
Diffstat (limited to 'korganizer/koagendaitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koagendaitem.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp
index e660c32..a8e0678 100644
--- a/korganizer/koagendaitem.cpp
+++ b/korganizer/koagendaitem.cpp
@@ -131,9 +131,14 @@ void KOAgendaItem::init ( Incidence *incidence, QDate qd )
}
}
- mColorGroup = QColorGroup( mBackgroundColor.light(),
- mBackgroundColor.dark(),mBackgroundColor.light(),
- mBackgroundColor.dark(),mBackgroundColor, black, mBackgroundColor) ;
+
+ QColor BackgroundColor ( mBackgroundColor );
+ if ( mIncidence->calID() > 1 ) {
+ BackgroundColor = KOPrefs::instance()->defaultColor( mIncidence->calID() );
+ }
+ mColorGroup = QColorGroup( BackgroundColor.light(),
+ BackgroundColor.dark(),BackgroundColor.light(),
+ BackgroundColor.dark(),BackgroundColor, black, BackgroundColor) ;
setBackgroundColor( mBackgroundColor );
mWhiteText = (mBackgroundColor.red() + mBackgroundColor.green() + mBackgroundColor.blue() < 250);
mConflictItems.clear();