[rkward] /: Fix varslot highlighting in multi-object mode

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Wed Nov 25 21:22:24 UTC 2015


Git commit c1abf31b9d85d653fd9404affc863d10f61971ce by Thomas Friedrichsmeier.
Committed on 25/11/2015 at 21:22.
Pushed by tfry into branch 'master'.

Fix varslot highlighting in multi-object mode

M  +1    -0    ChangeLog
M  +3    -4    rkward/plugin/rkvarslot.cpp

http://commits.kde.org/rkward/c1abf31b9d85d653fd9404affc863d10f61971ce

diff --git a/ChangeLog b/ChangeLog
index 625306d..d00e870 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+- Fixed: Plugin variable slots taking more than one object would not be hightlighted in red while invalid
 - Plugins check for correct object type, in more places, but allow to proceed with questionable object selections
 - Fixed: RKWard package repository would be listed twice on fresh installations
 - Switch to bugs.kde.org as primary issue tracker
diff --git a/rkward/plugin/rkvarslot.cpp b/rkward/plugin/rkvarslot.cpp
index 7c0d591..633515c 100644
--- a/rkward/plugin/rkvarslot.cpp
+++ b/rkward/plugin/rkvarslot.cpp
@@ -182,15 +182,14 @@ void RKVarSlot::updateLook () {
 
 	QPalette palette = list->palette ();
 	if (!isSatisfied ()) {		// implies that it is enabled
-		palette.setColor (QPalette::Window, QColor (255, 0, 0));
+		palette.setColor (QPalette::Base, QColor (255, 0, 0));
 	} else {
 		if (isEnabled ()) {
-			palette.setColor (QPalette::Window, QColor (255, 255, 255));
+			palette.setColor (QPalette::Base, QColor (255, 255, 255));
 		} else {
-			palette.setColor (QPalette::Window, QColor (200, 200, 200));
+			palette.setColor (QPalette::Base, QColor (200, 200, 200));
 		}
 	}
-	if (!multi) palette.setColor (QPalette::Base, palette.color (QPalette::Window));
 	list->setPalette(palette);
 }
 



More information about the rkward-tracker mailing list