Merge lp:~tpeeters/ubuntu-ui-toolkit/noViewReference into lp:ubuntu-ui-toolkit/staging

Proposed by Tim Peeters
Status: Merged
Approved by: Cris Dywan
Approved revision: 1981
Merged at revision: 1981
Proposed branch: lp:~tpeeters/ubuntu-ui-toolkit/noViewReference
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 56 lines (+10/-10)
2 files modified
src/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml (+1/-1)
tests/unit_x11/tst_components/tst_pulltorefresh_topmargin.qml (+9/-9)
To merge this branch: bzr merge lp:~tpeeters/ubuntu-ui-toolkit/noViewReference
Reviewer Review Type Date Requested Status
ubuntu-sdk-build-bot continuous-integration Approve
Cris Dywan Approve
Zsombor Egri Approve
PS Jenkins bot continuous-integration Pending
Review via email: mp+295038@code.launchpad.net

Commit message

Fix reference error in PullToRefreshStyle.

To post a comment you must log in.
Revision history for this message
Zsombor Egri (zsombi) wrote :

Thanks.

review: Approve
Revision history for this message
Cris Dywan (kalikiana) wrote :

There's no test case...

review: Needs Fixing
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (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: Needs Fixing (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: Needs Fixing (continuous-integration)
1981. By Tim Peeters

rename view to flickable

Revision history for this message
Cris Dywan (kalikiana) wrote :

Thanks a lot!

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)
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)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml'
2--- src/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml 2016-05-11 21:17:26 +0000
3+++ src/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml 2016-05-18 11:32:26 +0000
4@@ -143,7 +143,7 @@
5 if (visible) {
6 // Make sure the flickable is back inside its bounds when
7 // the Page becomes visible again:
8- view.returnToBounds();
9+ control.target.returnToBounds();
10 }
11 }
12
13
14=== modified file 'tests/unit_x11/tst_components/tst_pulltorefresh_topmargin.qml'
15--- tests/unit_x11/tst_components/tst_pulltorefresh_topmargin.qml 2016-05-13 10:16:27 +0000
16+++ tests/unit_x11/tst_components/tst_pulltorefresh_topmargin.qml 2016-05-18 11:32:26 +0000
17@@ -24,16 +24,16 @@
18 height: units.gu(71)
19 id: root
20 Flickable {
21- id: view
22+ id: flickable
23 anchors.fill: parent
24- contentHeight: 1.6*view.height
25+ contentHeight: 1.6*flickable.height
26 Label {
27 anchors.centerIn: parent
28 text: "void"
29 }
30 PullToRefresh {
31 id: pullToRefresh
32- parent: view
33+ parent: flickable
34 onRefresh: {
35 refreshing = true;
36 refreshing = false;
37@@ -46,13 +46,13 @@
38 when: windowShown
39
40 function test_reposition_after_refresh_bug1578619() {
41- var initialTopMargin = view.topMargin;
42- var initialContentY = view.contentY;
43- flick(view, view.width/2, units.gu(10), 0, units.gu(40));
44- tryCompare(view, "moving", false);
45- tryCompare(view, "topMargin", initialTopMargin, 500,
46+ var initialTopMargin = flickable.topMargin;
47+ var initialContentY = flickable.contentY;
48+ flick(flickable, flickable.width/2, units.gu(10), 0, units.gu(40));
49+ tryCompare(flickable, "moving", false);
50+ tryCompare(flickable, "topMargin", initialTopMargin, 500,
51 "Initial topMargin of flickable is not restored after refreshing.");
52- tryCompare(view, "contentY", initialContentY, 500,
53+ tryCompare(flickable, "contentY", initialContentY, 500,
54 "Initial contentY of flickable is not restored after refreshing.")
55 }
56 }

Subscribers

People subscribed via source and target branches