Merge lp://staging/~fboucault/ubuntu-ui-toolkit/dpr_rebase_qt_5.1 into lp://staging/ubuntu-ui-toolkit

Proposed by Florian Boucault
Status: Rejected
Rejected by: Tim Peeters
Proposed branch: lp://staging/~fboucault/ubuntu-ui-toolkit/dpr_rebase_qt_5.1
Merge into: lp://staging/ubuntu-ui-toolkit
Diff against target: 525 lines (+219/-61)
11 files modified
modules/Ubuntu/Components/Themes/Ambiance/HeaderStyle.qml (+1/-0)
modules/Ubuntu/Components/Themes/Ambiance/TabBarStyle.qml (+2/-2)
modules/Ubuntu/Components/plugin/shapeitem.cpp (+20/-5)
modules/Ubuntu/Components/plugin/ucqquickimageextension.cpp (+42/-4)
modules/Ubuntu/Components/plugin/ucscalingimageprovider.cpp (+6/-0)
modules/Ubuntu/Components/plugin/ucunits.cpp (+30/-7)
modules/Ubuntu/Components/plugin/ucunits.h (+4/-0)
modules/Ubuntu/Components/plugin/unitythemeiconprovider.cpp (+5/-2)
tests/unit/tst_qquick_image_extension/tst_qquick_image_extension.cpp (+7/-1)
tests/unit/tst_scaling_image_provider/tst_scaling_image_provider.cpp (+12/-4)
tests/unit/tst_units/tst_units.cpp (+90/-36)
To merge this branch: bzr merge lp://staging/~fboucault/ubuntu-ui-toolkit/dpr_rebase_qt_5.1
Reviewer Review Type Date Requested Status
Tim Peeters Needs Resubmitting
PS Jenkins bot continuous-integration Approve
Zsombor Egri Pending
Review via email: mp+183762@code.staging.launchpad.net

Commit message

Change is only enabled for the webbrowser app.

Rebase resolution independence on Qt's infrastructure:
- QPlatformScreen::devicePixelRatio
- QPlatformWindow::devicePixelRatio

Change is only enabled for Qt version >= 5.1 and when qtubuntu is in use.
A 'dp' is now exactly one Qt pixel and a 'gu' is 8 Qt pixels.
devicePixelRatio is set to be GRID_UNIT_PX / 8.

To post a comment you must log in.
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

The tests currently fail here:

FAIL! : qmltestrunner::UCUnitsAPI::test_gu() can use units.gu
   Actual (): 8
   Expected (): 9
   Loc: [/home/dmitry/tests/ubuntu-ui-toolkit/tests/unit/tst_components/tst_plugin_ucunits.qml(40)]

Revision history for this message
Albert Astals Cid (aacid) wrote :
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
751. By Florian Boucault

Merged from trunk.

752. By Florian Boucault

Removed duplicated constant.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
753. By Florian Boucault

Removed useless include.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
754. By Florian Boucault

Do not avoid upscaling.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
755. By Florian Boucault

Icon image provider: convert from device independent pixels to real pixels

756. By Florian Boucault

Fix BorderImage scaling with a workaround.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
757. By Florian Boucault

Merged from trunk.

758. By Florian Boucault

Only activate new code path when Qt is at least version 5.1 and we are using qtubuntu.

759. By Florian Boucault

Removed stray debug.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
760. By Florian Boucault

Merged from trunk

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
761. By Florian Boucault

Also activate useDevicePixelRatio for MIR's qtubuntu.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
762. By Florian Boucault

Removed stray debug.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
763. By Florian Boucault

TabBar: do not rely on sourceSize that uses real pixels.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Zsombor Egri (zsombi) wrote :

25 - height: 0.82*sourceSize.height
26 + height: units.dp(25)

This may cause the chevron issues on Mir, however we need to check whether it appears on SurfaceFlinger. If it does, the image scaling needs to be revisited.

764. By Florian Boucault

Made tab bar chevron a bit smaller and prettier.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
765. By Florian Boucault

Only activate devicePixelRatio based scaling for webbrowser-app.

766. By Florian Boucault

Reverted unwanted change from previous commit.

767. By Florian Boucault

Also activate devicePixelRatio based scaling for webapps.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Tim Peeters (tpeeters) wrote :

If this MR is still valid, please resubmit it to staging

review: Needs Resubmitting

Unmerged revisions

767. By Florian Boucault

Also activate devicePixelRatio based scaling for webapps.

766. By Florian Boucault

Reverted unwanted change from previous commit.

765. By Florian Boucault

Only activate devicePixelRatio based scaling for webbrowser-app.

764. By Florian Boucault

Made tab bar chevron a bit smaller and prettier.

763. By Florian Boucault

TabBar: do not rely on sourceSize that uses real pixels.

762. By Florian Boucault

Removed stray debug.

761. By Florian Boucault

Also activate useDevicePixelRatio for MIR's qtubuntu.

760. By Florian Boucault

Merged from trunk

759. By Florian Boucault

Removed stray debug.

758. By Florian Boucault

Only activate new code path when Qt is at least version 5.1 and we are using qtubuntu.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: