Merge lp://staging/~ubuntu-sdk-team/ubuntu-ui-toolkit/dpr into lp://staging/ubuntu-ui-toolkit/staging
Status: | Merged | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Approved by: | Zsombor Egri | ||||||||||||
Approved revision: | 1205 | ||||||||||||
Merged at revision: | 1605 | ||||||||||||
Proposed branch: | lp://staging/~ubuntu-sdk-team/ubuntu-ui-toolkit/dpr | ||||||||||||
Merge into: | lp://staging/ubuntu-ui-toolkit/staging | ||||||||||||
Diff against target: |
1044 lines (+747/-26) 22 files modified
debian/control (+5/-0) src/Ubuntu/Components/plugin/ucqquickimageextension.cpp (+23/-3) src/Ubuntu/Components/plugin/ucubuntushape.cpp (+17/-13) src/Ubuntu/Components/plugin/ucunits.cpp (+46/-5) src/Ubuntu/Components/plugin/ucunits.h (+1/-0) tests/unit/add_makecheck.pri (+12/-1) tests/unit/custom_qpa/README (+15/-0) tests/unit/custom_qpa/custom.json (+3/-0) tests/unit/custom_qpa/custom_qpa.pro (+15/-0) tests/unit/custom_qpa/main.cpp (+54/-0) tests/unit/custom_qpa/qcustombackingstore.cpp (+64/-0) tests/unit/custom_qpa/qcustombackingstore.h (+55/-0) tests/unit/custom_qpa/qcustomintegration.cpp (+112/-0) tests/unit/custom_qpa/qcustomintegration.h (+74/-0) tests/unit/runtest.sh (+2/-0) tests/unit/tst_units/dpr1/dpr1.pro (+3/-0) tests/unit/tst_units/dpr2/dpr2.pro (+3/-0) tests/unit/tst_units/dpr2/tst_units_dpr2.cpp (+143/-0) tests/unit/tst_units/dpr3/dpr3.pro (+3/-0) tests/unit/tst_units/dpr3/tst_units_dpr3.cpp (+88/-0) tests/unit/tst_units/tst_units.pro (+6/-3) tests/unit/unit.pro (+3/-1) |
||||||||||||
To merge this branch: | bzr merge lp://staging/~ubuntu-sdk-team/ubuntu-ui-toolkit/dpr | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zsombor Egri | Approve | ||
PS Jenkins bot | continuous-integration | Approve | |
Loïc Molinari (community) | Approve | ||
Gerry Boland (community) | Needs Information | ||
Review via email: mp+256470@code.staging.launchpad.net |
This proposal supersedes a proposal from 2015-04-16.
Commit message
Compensate for Qt's device pixel ratio multiplier
Description of the change
Compensate for Qt's device pixel ratio multiplier
The UITK has flexible UI scaling support through the use of Grid Units, where one can set a grid unit to be an integer number of pixels, and the whole UI adopts to suit this. GRID_UNIT_PX=10 is the way to set this.
Qt however has its own scaling solution: QScreen:
This latter solution works for all Qt apps, whereas Grid units only apply to UITK-based apps. For a HighDPI desktop, we want to use both solutions.
However these two scaling solutions are cumulative. Should one set
QT_DEVICE_
then a box of height units.gu(1) will be drawn 32 physical pixels high.
The intention of this MR is to guarantee that GRID_UNIT_PX corresponds to physical pixels, no matter what QScreen:
To test, open the gallery with these 2 different envs:
QT_DEVICE_
QT_DEVICE_
Some visual inconsistencies at small GU values are due to exact font rendering sizes and some rounding issues causing off-by-one positioning errors. QT_DEVICE_
FAILED: Continuous integration, rev:1172 jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- ci/1675/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 2275 jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- vivid-amd64- ci/402 jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- vivid-armhf- ci/405 jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- vivid-armhf- ci/405/ artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- vivid-i386- ci/402 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- vivid-mako/ 1998 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 2273 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 2273/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 19696
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/ubuntu- sdk-team- ubuntu- ui-toolkit- staging- ci/1675/ rebuild
http://