[education/rkward] rkward: Fix compilation with older versions

Thomas Friedrichsmeier null at kde.org
Thu Mar 31 14:45:33 BST 2022


Git commit 42ede2adcf75fc3e5d0d751cdae9730230d25702 by Thomas Friedrichsmeier.
Committed on 31/03/2022 at 13:45.
Pushed by tfry into branch 'master'.

Fix compilation with older versions

M  +1    -1    rkward/rkward.cpp

https://invent.kde.org/education/rkward/commit/42ede2adcf75fc3e5d0d751cdae9730230d25702

diff --git a/rkward/rkward.cpp b/rkward/rkward.cpp
index 6a7deccb..51355fc5 100644
--- a/rkward/rkward.cpp
+++ b/rkward/rkward.cpp
@@ -926,7 +926,7 @@ void RKWardMainWindow::slotDetachWindow () {
 }
 
 void setIndictatorColor(QWidget *widget, KColorScheme::ForegroundRole fg, KColorScheme::BackgroundRole bg) {
-	KColorScheme color_scheme;
+	KColorScheme color_scheme(QPalette::Normal); // default parameter in more recent versions of KColorScheme (->KF6: remove)
 	QPalette palette = widget->palette();
 	palette.setBrush(widget->backgroundRole(), color_scheme.background(bg));
 	palette.setBrush(widget->foregroundRole(), color_scheme.foreground(fg));


More information about the rkward-tracker mailing list