Merge lp:~aacid/unity8/dash_disable_hswipe_on_vswipe into lp:unity8

Proposed by Albert Astals Cid
Status: Merged
Approved by: Mirco Müller
Approved revision: 435
Merged at revision: 437
Proposed branch: lp:~aacid/unity8/dash_disable_hswipe_on_vswipe
Merge into: lp:unity8
Diff against target: 59 lines (+8/-5)
3 files modified
Dash/DashContent.qml (+5/-5)
Dash/GenericScopeView.qml (+2/-0)
Dash/ScopeView.qml (+1/-0)
To merge this branch: bzr merge lp:~aacid/unity8/dash_disable_hswipe_on_vswipe
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Mirco Müller (community) Approve
Review via email: mp+190576@code.launchpad.net

Commit message

Don't let the user change between scopes if the current one is moving up/down

To post a comment you must log in.
Revision history for this message
Mirco Müller (macslow) wrote :

Looks fine to me, merges ok and fixes the issue.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:435
http://jenkins.qa.ubuntu.com/job/unity8-ci/1360/
Executed test runs:
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-saucy/4939/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-touch/2835
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-saucy/2226
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-saucy-amd64-ci/383
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-saucy-armhf-ci/1360
        deb: http://jenkins.qa.ubuntu.com/job/unity8-saucy-armhf-ci/1360/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-saucy-i386-ci/1359
    FAILURE: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-saucy/1116/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-saucy-amd64/814
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-saucy-amd64/814/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-saucy-armhf/2837
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-saucy-armhf/2837/artifact/work/output/*zip*/output.zip
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-runner-maguro/2359
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-runner-mako/2399

Click here to trigger a rebuild:
http://10.97.0.26:8080/job/unity8-ci/1360/rebuild

review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Dash/DashContent.qml'
2--- Dash/DashContent.qml 2013-10-08 11:10:11 +0000
3+++ Dash/DashContent.qml 2013-10-11 10:08:39 +0000
4@@ -83,7 +83,7 @@
5 id: dashContentList
6 objectName: "dashContentList"
7
8- interactive: dashContent.scopes.loaded
9+ interactive: dashContent.scopes.loaded && !currentItem.previewShown && !currentItem.moving
10
11 anchors.fill: parent
12 model: dashContent.model
13@@ -116,6 +116,9 @@
14 source: scopeMapper.map(scope.id)
15 objectName: scope.id + " loader"
16
17+ readonly property bool previewShown: item.previewShown
18+ readonly property bool moving: item.moving
19+
20 // these are needed for autopilot tests
21 readonly property string scopeId: scope.id
22 readonly property bool isCurrent: ListView.isCurrentItem
23@@ -135,10 +138,7 @@
24 onEndReached: contentEndReached()
25 onPreviewShownChanged: {
26 if (item.previewShown) {
27- previewShown()
28- dashContentList.interactive = false
29- } else {
30- dashContentList.interactive = true
31+ dashContent.previewShown()
32 }
33 }
34 }
35
36=== modified file 'Dash/GenericScopeView.qml'
37--- Dash/GenericScopeView.qml 2013-10-11 08:43:01 +0000
38+++ Dash/GenericScopeView.qml 2013-10-11 10:08:39 +0000
39@@ -24,6 +24,8 @@
40 readonly property alias previewShown: previewLoader.onScreen
41 property bool enableHeightBehaviorOnNextCreation: false
42
43+ moving: categoryView.moving
44+
45 onIsCurrentChanged: {
46 pageHeader.resetSearch();
47 previewLoader.open = false;
48
49=== modified file 'Dash/ScopeView.qml'
50--- Dash/ScopeView.qml 2013-09-24 09:52:37 +0000
51+++ Dash/ScopeView.qml 2013-10-11 10:08:39 +0000
52@@ -23,6 +23,7 @@
53 property SortFilterProxyModel categories: categoryFilter
54 property bool isCurrent
55 property ListModel searchHistory
56+ property bool moving: false
57
58 signal endReached
59 signal movementStarted

Subscribers

People subscribed via source and target branches