diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-07-01 12:32:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-07-01 13:18:24 (GMT) |
commit | 963ddafeaabd2853002df66b6e873a379a75c45a (patch) | |
tree | 8730a7cdf78df87318b050acb67f963902ef7560 /Source/QtDialog | |
parent | 1a2d6bdefcd7cb0f3f3a4f5ccd0bee0ddb1e7faa (diff) | |
download | CMake-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.cxx | 2 |
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); } |