author | zautrix <zautrix> | 2005-02-05 11:26:35 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-05 11:26:35 (UTC) |
commit | 86c0d35262454a31ed7d50d3e20cbdace954ebdf (patch) (unidiff) | |
tree | 7ded091fe9111fe20014f8edbc5f338293e36386 /korganizer/kotodoviewitem.cpp | |
parent | 3a822a4c4867acb28dc1b3b9557918d0971f732c (diff) | |
download | kdepimpi-86c0d35262454a31ed7d50d3e20cbdace954ebdf.zip kdepimpi-86c0d35262454a31ed7d50d3e20cbdace954ebdf.tar.gz kdepimpi-86c0d35262454a31ed7d50d3e20cbdace954ebdf.tar.bz2 |
another fixx
-rw-r--r-- | korganizer/kotodoviewitem.cpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/korganizer/kotodoviewitem.cpp b/korganizer/kotodoviewitem.cpp index 6bdee18..78d4027 100644 --- a/korganizer/kotodoviewitem.cpp +++ b/korganizer/kotodoviewitem.cpp | |||
@@ -329,20 +329,16 @@ void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, i | |||
329 | } else | 329 | } else |
330 | setColor = false; | 330 | setColor = false; |
331 | } | 331 | } |
332 | if (mTodo->hasDueDate()) { | 332 | |
333 | if (mTodo->dtDue().date()==QDate::currentDate() && | 333 | int odue = mTodo->hasDueSubTodo( !isOpen()); |
334 | !mTodo->isCompleted()) { | 334 | if (odue == 2) { |
335 | //_cg.setColor( role , KOPrefs::instance()->mTodoDueTodayColor); | ||
336 | colorToSet = KOPrefs::instance()->mTodoDueTodayColor; | ||
337 | setColor = true; | ||
338 | } | ||
339 | if (mTodo->dtDue().date() < QDate::currentDate() && | ||
340 | !mTodo->isCompleted()) { | ||
341 | //_cg.setColor( role, KOPrefs::instance()->mTodoOverdueColor); | ||
342 | colorToSet = KOPrefs::instance()->mTodoOverdueColor; | 335 | colorToSet = KOPrefs::instance()->mTodoOverdueColor; |
343 | setColor = true; | 336 | setColor = true; |
337 | } else if ( odue == 1 ) { | ||
338 | colorToSet = KOPrefs::instance()->mTodoDueTodayColor; | ||
339 | setColor = true; | ||
344 | } | 340 | } |
345 | } | 341 | |
346 | 342 | ||
347 | if ( setColor ) { | 343 | if ( setColor ) { |
348 | _cg.setColor(role,colorToSet ); | 344 | _cg.setColor(role,colorToSet ); |