Merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/listItemDefaultColor into lp:ubuntu-ui-toolkit/staging

Proposed by Cris Dywan
Status: Merged
Approved by: Cris Dywan
Approved revision: 2052
Merged at revision: 2050
Proposed branch: lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/listItemDefaultColor
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 25 lines (+2/-2)
2 files modified
tests/unit/visual/tst_listitem.12.qml (+1/-1)
tests/unit/visual/tst_listitem.13.qml (+1/-1)
To merge this branch: bzr merge lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/listItemDefaultColor
Reviewer Review Type Date Requested Status
ubuntu-sdk-build-bot continuous-integration Approve
Andrea Bernabei (community) Approve
Review via email: mp+302151@code.launchpad.net

Commit message

Use Qt.rgba instead of #0000 checking ListItem default color

To post a comment you must log in.
Revision history for this message
Andrea Bernabei (faenil) wrote :

I think neither the current nor the old colour check would work.

See https://bugreports.qt.io/browse/QTBUG-34878

review: Disapprove
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
2052. By Cris Dywan

Compare stringified default color with stringified reference color

Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Andrea Bernabei (faenil) wrote :

lgtm, thanks

for those who want more details, see the linked bug report

review: Approve
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/unit/visual/tst_listitem.12.qml'
2--- tests/unit/visual/tst_listitem.12.qml 2016-06-15 13:46:51 +0000
3+++ tests/unit/visual/tst_listitem.12.qml 2016-08-05 14:56:03 +0000
4@@ -245,7 +245,7 @@
5
6 function test_0_defaults() {
7 verify(defaults.contentItem !== null, "Defaults is null");
8- compare(defaults.color, "#000000", "Transparent by default");
9+ compare(defaults.color.toString(), Qt.rgba(0.0, 0.0, 0.0, 0.0).toString(), "Transparent by default");
10 compare(defaults.highlightColor, theme.palette.selected.background, "theme.palette.selected.background color by default")
11 compare(defaults.highlighted, false, "Not highlighted by default");
12 compare(defaults.divider.visible, true, "divider is visible by default");
13
14=== modified file 'tests/unit/visual/tst_listitem.13.qml'
15--- tests/unit/visual/tst_listitem.13.qml 2016-06-15 13:46:51 +0000
16+++ tests/unit/visual/tst_listitem.13.qml 2016-08-05 14:56:03 +0000
17@@ -245,7 +245,7 @@
18
19 function test_0_defaults() {
20 verify(defaults.contentItem !== null, "Defaults is null");
21- compare(defaults.color, "#000000", "Transparent by default");
22+ compare(defaults.color.toString(), Qt.rgba(0.0, 0.0, 0.0, 0.0).toString(), "Transparent by default");
23 compare(defaults.highlightColor, theme.palette.selected.background, "theme.palette.selected.background color by default")
24 compare(defaults.highlighted, false, "Not highlighted by default");
25 compare(defaults.divider.visible, true, "divider is visible by default");

Subscribers

People subscribed via source and target branches