From 6836c3ff836bd07739c72eab778e988303a8832f Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Thu, 27 Feb 2014 17:44:05 -0500 Subject: Add retina display support to the default Info.plist. Task-number: QBS-529 Change-Id: I77c5db7f0e3516ac3022468a2c242ffcf5441401 Reviewed-by: Joerg Bornemann --- share/qbs/modules/cpp/DarwinGCC.qbs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'share') diff --git a/share/qbs/modules/cpp/DarwinGCC.qbs b/share/qbs/modules/cpp/DarwinGCC.qbs index 527e669cd..bb3e5e345 100644 --- a/share/qbs/modules/cpp/DarwinGCC.qbs +++ b/share/qbs/modules/cpp/DarwinGCC.qbs @@ -76,8 +76,12 @@ UnixGCC { if (product.type.contains("applicationbundle")) dict["CFBundleIconFile"] = product.targetName; - if (qbs.targetOS.contains("osx") && minimumOsxVersion) - dict["LSMinimumSystemVersion"] = minimumOsxVersion; + if (qbs.targetOS.contains("osx")) { + dict["NSPrincipalClass"] = "NSApplication"; // needed for Retina display support + + if (minimumOsxVersion) + dict["LSMinimumSystemVersion"] = minimumOsxVersion; + } if (qbs.targetOS.contains("ios")) { dict["LSRequiresIPhoneOS"] = true; -- cgit v1.2.3