summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-12-16 11:17:56 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-12-16 11:18:01 (GMT)
commitd8654c2a0290b30c8684a334652d8876e5ab33f6 (patch)
tree96b52e9275126dfee9cd3b18d6642bd4dd32732f /Source/QtDialog
parentd124a4b4d4fb76ef84e4bc73b57256c9896dfc6c (diff)
parent47649baf60fb59a0799322d30ade7eaace5f6014 (diff)
downloadCMake-d8654c2a0290b30c8684a334652d8876e5ab33f6.zip
CMake-d8654c2a0290b30c8684a334652d8876e5ab33f6.tar.gz
CMake-d8654c2a0290b30c8684a334652d8876e5ab33f6.tar.bz2
Merge topic 'cmake-gui-system-icon'
47649baf60 cmake-gui: Use icon from system theme if available Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5616
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/CMakeSetup.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx
index c1555a2..861c6e3 100644
--- a/Source/QtDialog/CMakeSetup.cxx
+++ b/Source/QtDialog/CMakeSetup.cxx
@@ -146,7 +146,7 @@ int main(int argc, char** argv)
QIcon appIcon;
appIcon.addFile(":/Icons/CMakeSetup32.png");
appIcon.addFile(":/Icons/CMakeSetup128.png");
- QApplication::setWindowIcon(appIcon);
+ QApplication::setWindowIcon(QIcon::fromTheme("cmake-gui", appIcon));
CMakeSetupDialog dialog;
dialog.show();