author | zautrix <zautrix> | 2005-06-17 07:51:48 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-17 07:51:48 (UTC) |
commit | 825c34c11200f8ff0229cfb00b82b1880ef55b94 (patch) (unidiff) | |
tree | 243df776d77afe55ca36ca8a78586a9e2fca1888 /korganizer/kotodoviewitem.cpp | |
parent | a04fff3ce192e0bebf9243a1fbedb97cf7108d2b (diff) | |
download | kdepimpi-825c34c11200f8ff0229cfb00b82b1880ef55b94.zip kdepimpi-825c34c11200f8ff0229cfb00b82b1880ef55b94.tar.gz kdepimpi-825c34c11200f8ff0229cfb00b82b1880ef55b94.tar.bz2 |
fixes
Diffstat (limited to 'korganizer/kotodoviewitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/kotodoviewitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/kotodoviewitem.cpp b/korganizer/kotodoviewitem.cpp index f62aab8..0cf6e4c 100644 --- a/korganizer/kotodoviewitem.cpp +++ b/korganizer/kotodoviewitem.cpp | |||
@@ -351,25 +351,25 @@ bool KOTodoViewItem::isAlternate() | |||
351 | item = static_cast<KOTodoViewItem *>(item->nextSibling()); | 351 | item = static_cast<KOTodoViewItem *>(item->nextSibling()); |
352 | } | 352 | } |
353 | } | 353 | } |
354 | return m_odd; | 354 | return m_odd; |
355 | } | 355 | } |
356 | return false; | 356 | return false; |
357 | } | 357 | } |
358 | 358 | ||
359 | void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment) | 359 | void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment) |
360 | { | 360 | { |
361 | QColorGroup _cg = cg; | 361 | QColorGroup _cg = cg; |
362 | QColorGroup::ColorRole role; | 362 | QColorGroup::ColorRole role; |
363 | if ( KOPrefs::instance()->mTodoViewUsesForegroundColor ) | 363 | if ( KOPrefs::instance()->mTodoViewUsesForegroundColor && !mTodo->isRunning()) |
364 | role = QColorGroup::Text; | 364 | role = QColorGroup::Text; |
365 | else | 365 | else |
366 | role = QColorGroup::Base; | 366 | role = QColorGroup::Base; |
367 | //#ifndef KORG_NOLVALTERNATION | 367 | //#ifndef KORG_NOLVALTERNATION |
368 | if (isAlternate()) | 368 | if (isAlternate()) |
369 | _cg.setColor(QColorGroup::Base, static_cast< KOTodoListView* >(listView())->alternateBackground()); | 369 | _cg.setColor(QColorGroup::Base, static_cast< KOTodoListView* >(listView())->alternateBackground()); |
370 | bool setColor = KOPrefs::instance()->mTodoViewUsesCatColors; | 370 | bool setColor = KOPrefs::instance()->mTodoViewUsesCatColors; |
371 | QColor colorToSet; | 371 | QColor colorToSet; |
372 | if ( column == 0 && mTodo->calID() > 1 ) { | 372 | if ( column == 0 && mTodo->calID() > 1 ) { |
373 | setColor = true; | 373 | setColor = true; |
374 | colorToSet = KOPrefs::instance()->defaultColor( mTodo->calID() ); | 374 | colorToSet = KOPrefs::instance()->defaultColor( mTodo->calID() ); |
375 | } else if ( setColor ) { | 375 | } else if ( setColor ) { |