summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-07-01 12:32:50 (GMT)
committerBrad King <brad.king@kitware.com>2019-07-01 13:18:24 (GMT)
commit963ddafeaabd2853002df66b6e873a379a75c45a (patch)
tree8730a7cdf78df87318b050acb67f963902ef7560 /Source/QtDialog
parent1a2d6bdefcd7cb0f3f3a4f5ccd0bee0ddb1e7faa (diff)
downloadCMake-963ddafeaabd2853002df66b6e873a379a75c45a.zip
CMake-963ddafeaabd2853002df66b6e873a379a75c45a.tar.gz
CMake-963ddafeaabd2853002df66b6e873a379a75c45a.tar.bz2
QtDialog: Use QPalette::WindowText instead of QPalette::Foreground
`QPalette::Foreground` is deprecated and was replaced by `QPalette::WindowText` since at least Qt 4.8. https://doc.qt.io/archives/qt-4.8/qpalette.html#ColorRole-enum This replaces the `QPalette::Foreground` color role with `QPalette::WindowText` in `QtDialog/RegexExplorer.cxx` to avoid compiler warnings.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/RegexExplorer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/QtDialog/RegexExplorer.cxx b/Source/QtDialog/RegexExplorer.cxx
index cb67f85..746fd8a 100644
--- a/Source/QtDialog/RegexExplorer.cxx
+++ b/Source/QtDialog/RegexExplorer.cxx
@@ -20,7 +20,7 @@ void RegexExplorer::setStatusColor(QWidget* widget, bool successful)
QColor color = successful ? QColor(0, 127, 0) : Qt::red;
QPalette palette = widget->palette();
- palette.setColor(QPalette::Foreground, color);
+ palette.setColor(QPalette::WindowText, color);
widget->setPalette(palette);
}