summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2020-12-14 22:40:28 (GMT)
committerBrad King <brad.king@kitware.com>2020-12-15 12:48:51 (GMT)
commit47649baf60fb59a0799322d30ade7eaace5f6014 (patch)
treeb917eb52902ddca8eaecc5a489789c46012c60ae /Source/QtDialog
parent82b25be80afc92da045d04a37e121a3fa97392c0 (diff)
downloadCMake-47649baf60fb59a0799322d30ade7eaace5f6014.zip
CMake-47649baf60fb59a0799322d30ade7eaace5f6014.tar.gz
CMake-47649baf60fb59a0799322d30ade7eaace5f6014.tar.bz2
cmake-gui: Use icon from system theme if available
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();