Skip to content

Commit

Permalink
Build testcase_lowdpi tests as application bundles on macOS
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
torarnv committed Jul 26, 2020
1 parent 6d4b358 commit 7f65994
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mkspecs/features/testcase.prf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7f65994

Please sign in to comment.