summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-07-19 17:10:41 +0900
committerMichele Calgaro <[email protected]>2023-07-19 17:10:41 +0900
commit933d4190ce83b2beafeb66819ea47d1abfe28b82 (patch)
tree4e5d88120fa55393466cae5ceab8c0948b62d01b
parent68aa9b3b84acaf8d174f4d7c14a2f9c765c8813f (diff)
downloadqalculate-tde-933d4190ce83b2beafeb66819ea47d1abfe28b82.tar.gz
qalculate-tde-933d4190ce83b2beafeb66819ea47d1abfe28b82.zip
Drop compatibility code for TQPalette
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r--src/qalculateresultdisplay.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qalculateresultdisplay.cpp b/src/qalculateresultdisplay.cpp
index f5515a5..03fed66 100644
--- a/src/qalculateresultdisplay.cpp
+++ b/src/qalculateresultdisplay.cpp
@@ -401,8 +401,8 @@ void QalculateResultDisplay::editMatrix() {
void QalculateResultDisplay::paletteChanged() {
TQPalette p = kapp ? kapp->palette() : palette();
- p.setBrush(TQColorGroup::Base, p.brush(TQPalette::Normal, TQColorGroup::Background));
- p.setColor(TQColorGroup::Text, p.color(TQPalette::Normal, TQColorGroup::Foreground));
+ p.setBrush(TQColorGroup::Base, p.brush(TQPalette::Active, TQColorGroup::Background));
+ p.setColor(TQColorGroup::Text, p.color(TQPalette::Active, TQColorGroup::Foreground));
setPalette(p);
}