From 7f6599428b19f2db7ef692c2301a895109c3a9b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Fri, 24 Jul 2020 14:01:13 +0200 Subject: [PATCH] Build testcase_lowdpi tests as application bundles on macOS As stand-alone executables are not tracked by Launch Services, which is responsible for applying the low-dpi override at runtime. Change-Id: Ifac71dfa9b9ffa5ab1302dfca8fa1f5ddd491082 Reviewed-by: Alexandru Croitor --- mkspecs/features/testcase.prf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mkspecs/features/testcase.prf b/mkspecs/features/testcase.prf index c65237e5fe8..4cce55fe04b 100644 --- a/mkspecs/features/testcase.prf +++ b/mkspecs/features/testcase.prf @@ -19,6 +19,10 @@ testcase_lowdpi { error("QMAKE_INFO_PLIST already set, can't apply testcase_lowdpi") QMAKE_INFO_PLIST = $$QMAKESPEC/Info.plist.disable_highdpi + # Needs to be bundle so that Launch Services will pick + # up and apply the NSHighResolutionCapable=NO state. + CONFIG += app_bundle + } else { # TODO: Add support for other platforms if possible }