[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/korganizer/printing
From:       Ron Goodheart <rong.dev () gmail ! com>
Date:       2009-01-19 5:54:10
Message-ID: 1232344450.447385.31279.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 913316 by rgoodheart:

BUG: 115142
now uses koprefs for todo overdue color



 M  +8 -1      calprintpluginbase.cpp  


--- trunk/KDE/kdepim/korganizer/printing/calprintpluginbase.cpp #913315:913316
@@ -24,6 +24,7 @@
   without including the source code for Qt in the source distribution.
 */
 
+
 #include "calprintpluginbase.h"
 #include "cellitem.h"
 #include "koprefs.h"
@@ -237,7 +238,13 @@
 QColor CalPrintPluginBase::categoryBgColor( Incidence *incidence )
 {
   if ( mCoreHelper && incidence ) {
-    return mCoreHelper->categoryColor( incidence->categories() );
+    QColor backColor = mCoreHelper->categoryColor( incidence->categories() );
+    if ( incidence->type() == "Todo" ) {
+      if ( static_cast<Todo*>( incidence )->isOverdue() ) {
+        backColor = KOPrefs::instance()->todoOverdueColor();
+      }
+    }
+    return backColor;
   } else {
     return QColor();
   }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic