summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorĽubomír Carik <Lubomir.Carik@gmail.com>2017-04-08 21:33:26 (GMT)
committerBrad King <brad.king@kitware.com>2017-04-11 13:49:12 (GMT)
commitd9140305077c13defa04774b4a8f5233a76f8399 (patch)
tree787815bb3786ce7501d8b4d88750d977a697f9b9
parente086b0e081d10f491dfe67fe065586423524942a (diff)
downloadCMake-d9140305077c13defa04774b4a8f5233a76f8399.zip
CMake-d9140305077c13defa04774b4a8f5233a76f8399.tar.gz
CMake-d9140305077c13defa04774b4a8f5233a76f8399.tar.bz2
macOS: Enable Hi-DPI support in applications by default
Every desktop application should be HiDPI ready in present. Based on information from Qt documentation enabling properties in `Info.plist` is sufficient to activate this feature. Newer versions of `qmake` do it. Signed-off-by: Ľubomír Carik <Lubomir.Carik@gmail.com>
-rw-r--r--Help/release/dev/macos-hidpi-qt-dialog.rst5
-rw-r--r--Modules/MacOSXBundleInfo.plist.in4
2 files changed, 9 insertions, 0 deletions
diff --git a/Help/release/dev/macos-hidpi-qt-dialog.rst b/Help/release/dev/macos-hidpi-qt-dialog.rst
new file mode 100644
index 0000000..263d405
--- /dev/null
+++ b/Help/release/dev/macos-hidpi-qt-dialog.rst
@@ -0,0 +1,5 @@
+macos-hidpi-qt-dialog
+---------------------
+
+* On macOS the default application bundle ``Info.plist`` file now enables
+ Hi-DPI support.
diff --git a/Modules/MacOSXBundleInfo.plist.in b/Modules/MacOSXBundleInfo.plist.in
index a4009bc..e06b17e 100644
--- a/Modules/MacOSXBundleInfo.plist.in
+++ b/Modules/MacOSXBundleInfo.plist.in
@@ -30,5 +30,9 @@
<true/>
<key>NSHumanReadableCopyright</key>
<string>${MACOSX_BUNDLE_COPYRIGHT}</string>
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
+ <key>NSHighResolutionCapable</key>
+ <string>True</string>
</dict>
</plist>