summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-07-01 14:32:50 +0200
committerBrad King <brad.king@kitware.com>2019-07-01 09:18:24 -0400
commit963ddafeaabd2853002df66b6e873a379a75c45a (patch)
tree8730a7cdf78df87318b050acb67f963902ef7560
parent1a2d6bdefcd7cb0f3f3a4f5ccd0bee0ddb1e7faa (diff)
downloadcmake-963ddafeaabd2853002df66b6e873a379a75c45a.tar.gz
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.
-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 cb67f85d48..746fd8af26 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);
}