summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-24 14:01:13 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-26 14:48:20 +0200
commit7f6599428b19f2db7ef692c2301a895109c3a9b7 (patch)
tree850d271419f90d6ca4cf535f727ce8f0c5267787 /mkspecs
parent6d4b3582adaf3cea23b0ef777a1bf3e7597fd8da (diff)
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 <alexandru.croitor@qt.io>
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/testcase.prf4
1 files changed, 4 insertions, 0 deletions
diff --git a/mkspecs/features/testcase.prf b/mkspecs/features/testcase.prf
index c65237e5fe..4cce55fe04 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
}