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
=== modified file 'src/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml'
--- src/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml 2016-05-11 21:17:26 +0000
+++ src/Ubuntu/Components/Themes/Ambiance/1.3/PullToRefreshStyle.qml 2016-05-18 11:32:26 +0000
@@ -143,7 +143,7 @@
143 if (visible) {143 if (visible) {
144 // Make sure the flickable is back inside its bounds when144 // Make sure the flickable is back inside its bounds when
145 // the Page becomes visible again:145 // the Page becomes visible again:
146 view.returnToBounds();146 control.target.returnToBounds();
147 }147 }
148 }148 }
149149
150150
=== modified file 'tests/unit_x11/tst_components/tst_pulltorefresh_topmargin.qml'
--- tests/unit_x11/tst_components/tst_pulltorefresh_topmargin.qml 2016-05-13 10:16:27 +0000
+++ tests/unit_x11/tst_components/tst_pulltorefresh_topmargin.qml 2016-05-18 11:32:26 +0000
@@ -24,16 +24,16 @@
24 height: units.gu(71)24 height: units.gu(71)
25 id: root25 id: root
26 Flickable {26 Flickable {
27 id: view27 id: flickable
28 anchors.fill: parent28 anchors.fill: parent
29 contentHeight: 1.6*view.height29 contentHeight: 1.6*flickable.height
30 Label {30 Label {
31 anchors.centerIn: parent31 anchors.centerIn: parent
32 text: "void"32 text: "void"
33 }33 }
34 PullToRefresh {34 PullToRefresh {
35 id: pullToRefresh35 id: pullToRefresh
36 parent: view36 parent: flickable
37 onRefresh: {37 onRefresh: {
38 refreshing = true;38 refreshing = true;
39 refreshing = false;39 refreshing = false;
@@ -46,13 +46,13 @@
46 when: windowShown46 when: windowShown
4747
48 function test_reposition_after_refresh_bug1578619() {48 function test_reposition_after_refresh_bug1578619() {
49 var initialTopMargin = view.topMargin;49 var initialTopMargin = flickable.topMargin;
50 var initialContentY = view.contentY;50 var initialContentY = flickable.contentY;
51 flick(view, view.width/2, units.gu(10), 0, units.gu(40));51 flick(flickable, flickable.width/2, units.gu(10), 0, units.gu(40));
52 tryCompare(view, "moving", false);52 tryCompare(flickable, "moving", false);
53 tryCompare(view, "topMargin", initialTopMargin, 500,53 tryCompare(flickable, "topMargin", initialTopMargin, 500,
54 "Initial topMargin of flickable is not restored after refreshing.");54 "Initial topMargin of flickable is not restored after refreshing.");
55 tryCompare(view, "contentY", initialContentY, 500,55 tryCompare(flickable, "contentY", initialContentY, 500,
56 "Initial contentY of flickable is not restored after refreshing.")56 "Initial contentY of flickable is not restored after refreshing.")
57 }57 }
58 }58 }

Subscribers

People subscribed via source and target branches