Merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/dpr into lp:ubuntu-ui-toolkit
Status: | Superseded | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Proposed branch: | lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/dpr | ||||||||||||
Merge into: | lp:ubuntu-ui-toolkit | ||||||||||||
Prerequisite: | lp:ubuntu-ui-toolkit/staging | ||||||||||||
Diff against target: |
245 lines (+61/-29) 5 files modified
modules/Ubuntu/Components/plugin/ucqquickimageextension.cpp (+10/-3) modules/Ubuntu/Components/plugin/ucubuntushape.cpp (+8/-10) modules/Ubuntu/Components/plugin/ucunits.cpp (+37/-12) modules/Ubuntu/Components/plugin/ucunits.h (+5/-3) ubuntu-sdk.pro (+1/-1) |
||||||||||||
To merge this branch: | bzr merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/dpr | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu SDK team | 2015-04-16 | Pending | |
Review via email:
|
This proposal has been superseded by a proposal from 2015-04-16.
Description of the change
[RFC] 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 20 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 are exact font rendering sizes and some rounding issues causing off-by-one positioning errors.
- 1172. By Gerry Boland on 2015-04-16
-
Cleanup debug output and re-enable tests
- 1173. By Gerry Boland on 2015-04-16
-
Remove translation changes in trunk to clean up diff with staging
- 1174. By Gerry Boland on 2015-04-20
-
UbuntuShape fixes for low GU values
- 1175. By Gerry Boland on 2015-04-20
-
More correct fix for UbuntuShape at different DPR, edges should render nicely now
- 1176. By Gerry Boland on 2015-04-21
-
Add tests to ensure units.gu and units.dp are being calculated correctly
- 1177. By Gerry Boland on 2015-04-24
-
No need to pass svg to scaling image provider for non-unit DPR. Expand on a comment explaining an odd line
- 1178. By Gerry Boland on 2015-04-27
-
Merge current staging branch
- 1179. By Gerry Boland on 2015-04-27
-
Revert 1173
- 1180. By Gerry Boland on 2015-04-28
-
Fix bad math
- 1181. By Gerry Boland on 2015-05-07
-
Merge staging
- 1182. By Gerry Boland on 2015-05-07
-
Update Ubuntu shape overlay for device pixel ratio too
- 1183. By Gerry Boland on 2015-05-19
-
In UbuntuShape, refactor DPR calculations to have radius in device pixels, simplifies updateGeometry
- 1184. By Gerry Boland on 2015-05-19
-
UCUnits - deconstify value params
- 1185. By Gerry Boland on 2015-05-19
-
Read device pixel ratio from QGuiApplication, instead of reading the env var
- 1186. By Gerry Boland on 2015-05-22
-
Rely on DPR from qGuiApp, do not read env var in UCUnits directly. Requires refactoring tests into separate binaries to be able to set that env var
- 1187. By Gerry Boland on 2015-05-22
-
Fix bug in SCI file rewriter for DPR>1
- 1188. By Gerry Boland on 2015-06-17
-
Merge trunk
- 1189. By Gerry Boland on 2015-06-17
-
Unnecessary copy of dpr value removed
- 1190. By Gerry Boland on 2015-06-17
-
[tests] added a custom minimal QPA plugin which includes device pixel support, to enable testing of dpr stuff
- 1191. By Gerry Boland on 2015-07-10
-
Merge trunk
- 1192. By Gerry Boland on 2015-07-10
-
Using custom QPA plugin, now have device pixel ratio unit tests passing
- 1193. By Gerry Boland on 2015-07-10
-
Add explanation text about DPR and GU
- 1194. By Gerry Boland on 2015-07-10
-
Consolidate the vocabulary a bit
- 1195. By Gerry Boland on 2015-07-10
-
Add missing build dependencies
- 1196. By Gerry Boland on 2015-07-14
-
Bump version
- 1197. By Gerry Boland on 2015-07-27
-
Merge staging and fix conflicts
- 1198. By Gerry Boland on 2015-07-27
-
Revert rev 1196
- 1199. By Gerry Boland on 2015-08-04
-
Merge staging, fix a conflict
- 1200. By Gerry Boland on 2015-08-11
-
Undo changes to paths for gallery launcher
- 1201. By Gerry Boland on 2015-08-11
-
Merge staging
- 1202. By Gerry Boland on 2015-08-12
-
Fix build fail - variable inited twice
- 1203. By Gerry Boland on 2015-08-12
-
Merge staging again
- 1204. By Gerry Boland on 2015-08-12
-
Merge staging again
- 1205. By Gerry Boland on 2015-08-12
-
Revert accidental changes to examples/
ubuntu- ui-toolkit- gallery/ po/nl.po