diff options
author | Kevin Krammer <kevin.krammer.qnx@kdab.com> | 2012-10-17 10:05:09 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-17 11:58:22 (GMT) |
commit | 98b039db1165021e2d48b467f44650777e881467 (patch) | |
tree | d1ec22a09ebdbece657ac0723d5a5366dfb65339 /tests | |
parent | 8dc5f5f28f3fb65c82151e319ca4309a82eee074 (diff) | |
download | Qt-98b039db1165021e2d48b467f44650777e881467.zip Qt-98b039db1165021e2d48b467f44650777e881467.tar.gz Qt-98b039db1165021e2d48b467f44650777e881467.tar.bz2 |
BlackBerry: Use real DPI instead of hardcoded value
Try to retrieve the device's real screen size and provide override
options in case the target's low level stack reports wrong values.
It can happen that the system is reporting a screen
width or height of zero, if the system does not know the
size instead of returning an error. You can either
set a define QQNX_PHYSICAL_SCREEN_WIDTH/QQNX_PHYSICAL_SCREEN_HEIGHT
or set it as environment variable QQNX_PHYSICAL_SCREEN_SIZE.
The preference order is:
1) Take detected size
2) Take size from env var
3) Take defined size if any define is set
Backport of 0b0e28997d5c0ec6fbffa839b0ceb57b55104f9c
Change-Id: If24a5d32ec9081fe006344bf30bbb917418c9071
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions