summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-18 14:08:49 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-09-18 14:08:59 (GMT)
commit836f42b3c0ff25389bfad4d8dd3de6798f2d3eb9 (patch)
treec9ec366f8b26bb23ca3e02c1185f8f6f8a1d376c
parentdd77a2ed4d0760232cf73977be3cb9dfde2dacb4 (diff)
parent6fb36572dcae748b81435602d0dc0a7968e28039 (diff)
downloadCMake-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.cxx4
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");