diff options
author | Brad King <brad.king@kitware.com> | 2017-09-18 14:08:49 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-09-18 14:08:59 (GMT) |
commit | 836f42b3c0ff25389bfad4d8dd3de6798f2d3eb9 (patch) | |
tree | c9ec366f8b26bb23ca3e02c1185f8f6f8a1d376c | |
parent | dd77a2ed4d0760232cf73977be3cb9dfde2dacb4 (diff) | |
parent | 6fb36572dcae748b81435602d0dc0a7968e28039 (diff) | |
download | CMake-836f42b3c0ff25389bfad4d8dd3de6798f2d3eb9.zip CMake-836f42b3c0ff25389bfad4d8dd3de6798f2d3eb9.tar.gz CMake-836f42b3c0ff25389bfad4d8dd3de6798f2d3eb9.tar.bz2 |
Merge topic 'cmake-gui-high-dpi'
6fb36572 cmake-gui: Enable High DPI scaling
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1271
-rw-r--r-- | Source/QtDialog/CMakeSetup.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx index 9f881e2..ca0b015 100644 --- a/Source/QtDialog/CMakeSetup.cxx +++ b/Source/QtDialog/CMakeSetup.cxx @@ -92,6 +92,10 @@ int main(int argc, char** argv) cmAddPluginPath(); #endif +#if QT_VERSION >= 0x050600 + QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif + QApplication app(argc, argv); setlocale(LC_NUMERIC, "C"); |