[rkward-cvs] SF.net SVN: rkward:[3777] trunk/rkward/rkward/plugin/rkvarslot.cpp
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Wed Sep 14 17:16:12 UTC 2011
Revision: 3777
http://rkward.svn.sourceforge.net/rkward/?rev=3777&view=rev
Author: tfry
Date: 2011-09-14 17:16:11 +0000 (Wed, 14 Sep 2011)
Log Message:
-----------
More obvious coloring for non-satisfied, non-multi varslots.
Modified Paths:
--------------
trunk/rkward/rkward/plugin/rkvarslot.cpp
Modified: trunk/rkward/rkward/plugin/rkvarslot.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkvarslot.cpp 2011-09-14 13:02:25 UTC (rev 3776)
+++ trunk/rkward/rkward/plugin/rkvarslot.cpp 2011-09-14 17:16:11 UTC (rev 3777)
@@ -150,19 +150,16 @@
RK_TRACE (PLUGIN);
QPalette palette = list->palette ();
- if (isEnabled ()) {
- if (!isSatisfied ()) {
- palette.setColor (list->backgroundRole (), QColor (255, 0, 0));
- } else {
- palette.setColor (list->backgroundRole (), QColor (255, 255, 255));
- }
+ if (!isSatisfied ()) { // implies that it is enabled
+ palette.setColor (QPalette::Window, QColor (255, 0, 0));
} else {
- if (!isSatisfied ()) {
- palette.setColor (list->backgroundRole (), QColor (200, 0, 0));
+ if (isEnabled ()) {
+ palette.setColor (QPalette::Window, QColor (255, 255, 255));
} else {
- palette.setColor (list->backgroundRole (), QColor (200, 200, 200));
+ palette.setColor (QPalette::Window, QColor (200, 200, 200));
}
}
+ if (!multi) palette.setColor (QPalette::Base, palette.color (QPalette::Window));
list->setPalette(palette);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list