Browse Source

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 <[email protected]>
Ľubomír Carik 8 years ago
parent
commit
d914030507
2 changed files with 9 additions and 0 deletions
  1. 5 0
      Help/release/dev/macos-hidpi-qt-dialog.rst
  2. 4 0
      Modules/MacOSXBundleInfo.plist.in

+ 5 - 0
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.

+ 4 - 0
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>