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

List:       kde-commits
Subject:    koffice/kexi/formeditor
From:       Jarosław Staniek <staniek () kde ! org>
Date:       2009-10-21 20:42:05
Message-ID: 1256157725.236492.15717.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1038789 by staniek:

use contrast color



 M  +3 -2      container.cpp  


--- trunk/koffice/kexi/formeditor/container.cpp #1038788:1038789
@@ -532,8 +532,9 @@
 #endif
             }
         }
-        p.setRenderHint(QPainter::Antialiasing, false);
-        p.setPen(QColor(10, 10, 10));
+
+//! @todo when container's background is not solid color, find better grid color, \
e.g. buffer the background for pixmaps or gradients +        \
p.setPen(KexiUtils::contrastColor(widget()->palette().background().color()));  \
p.drawPoints(gridpoints);  #ifdef DEBUG_PAINTER
     kDebug() << "millisecs:" << t.elapsed() << "points:" << points;


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

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