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

Proposed by Albert Astals Cid
Status: Merged
Approved by: Josh Arenson
Approved revision: 2219
Merged at revision: 2272
Proposed branch: lp:~aacid/unity8/scopeListTouchFeedback
Merge into: lp:unity8
Diff against target: 35 lines (+8/-4)
1 file modified
qml/Dash/ScopesListCategoryItem.qml (+8/-4)
To merge this branch: bzr merge lp:~aacid/unity8/scopeListTouchFeedback
Reviewer Review Type Date Requested Status
Josh Arenson Approve
Unity8 CI Bot continuous-integration Needs Fixing
Review via email: mp+288517@code.launchpad.net

Commit message

Add haptics to ScopesListCategoryItem buttons

Description of the change

 * Are there any related MPs required for this MP to build/function as expected?
No

 * Did you perform an exploratory manual test run of your code change and any related functionality?
Yes

 * Did you make sure that your branch does not contain spurious tags?
Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

 * If you changed the UI, has there been a design review?
N/A

To post a comment you must log in.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2219
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/634/
Executed test runs:
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/360
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial,testname=qmluitests.sh/360
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=phone-armhf,release=vivid+overlay,testname=autopilot.sh/360
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/838
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/854
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/854
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/852
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/852/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/852
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/852/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/852
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/852/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/852
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/852/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/852
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/852/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/852
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/852/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/634/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Josh Arenson (josharenson) wrote :

* Did you perform an exploratory manual test run of the code change and any related functionality?
Yes

 * Did CI run pass?
No, but it passed enough.

 * Did you make sure that the branch does not contain spurious tags?
Yes, clean.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Dash/ScopesListCategoryItem.qml'
2--- qml/Dash/ScopesListCategoryItem.qml 2015-11-04 14:57:13 +0000
3+++ qml/Dash/ScopesListCategoryItem.qml 2016-03-09 14:17:45 +0000
4@@ -18,7 +18,7 @@
5 import QtQuick.Layouts 1.1
6 import Ubuntu.Components 1.3
7
8-MouseArea {
9+AbstractButton {
10 id: root
11
12 signal requestFavorite(string scopeId, bool favorite)
13@@ -84,15 +84,19 @@
14 visible: text != ""
15 }
16 }
17- MouseArea {
18+ AbstractButton {
19 id: starArea
20 objectName: "starArea"
21 height: parent.height
22 width: height
23 anchors.right: parent.right
24 onClicked: if (!editMode) root.requestFavorite(model.scopeId, !isFavorite);
25- onPressed: if (editMode) root.handlePressed(starArea);
26- onReleased: if (editMode) root.handleReleased(starArea);
27+ onPressedChanged: {
28+ if (editMode) {
29+ if (pressed) root.handlePressed(starArea.__mouseArea);
30+ else root.handleReleased(starArea.__mouseArea);
31+ }
32+ }
33 visible: editMode || showStar
34 Icon {
35 id: star

Subscribers

People subscribed via source and target branches