diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2020-12-14 22:40:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-12-15 12:48:51 (GMT) |
commit | 47649baf60fb59a0799322d30ade7eaace5f6014 (patch) | |
tree | b917eb52902ddca8eaecc5a489789c46012c60ae /Source/QtDialog | |
parent | 82b25be80afc92da045d04a37e121a3fa97392c0 (diff) | |
download | CMake-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.cxx | 2 |
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(); |