Merge lp:~lukas-kde/unity8/fixLauncherDismiss into lp:unity8

Proposed by Lukáš Tinkl on 2016-01-05
Status: Merged
Approved by: Michał Sawicz on 2016-01-11
Approved revision: 2110
Merged at revision: 2128
Proposed branch: lp:~lukas-kde/unity8/fixLauncherDismiss
Merge into: lp:unity8
Diff against target: 93 lines (+24/-11)
3 files modified
qml/Launcher/Launcher.qml (+4/-9)
qml/Launcher/LauncherPanel.qml (+4/-2)
tests/qmltests/Launcher/tst_Launcher.qml (+16/-0)
To merge this branch: bzr merge lp:~lukas-kde/unity8/fixLauncherDismiss
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing on 2016-01-11
Daniel d'Andrada (community) Abstain on 2016-01-07
Michael Terry 2016-01-05 Approve on 2016-01-06
Review via email: mp+281640@code.launchpad.net

Commit Message

Fix dismissing the launcher when clicking/tapping outside

Description of the Change

Fix dismissing the launcher when clicking/tapping outside in the darkened area and wrongly playing haptics when clicking empty space.

Fixes bug lp#1530940

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

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?

Yes

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

N/A

To post a comment you must log in.
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2104
http://jenkins.qa.ubuntu.com/job/unity8-ci/7016/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5932
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/431/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1721
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/424
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1616
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1616
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/423
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/422
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4581
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5943
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5943/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26424
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/185/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/429
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/429/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26425

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/7016/rebuild

review: Needs Fixing (continuous-integration)
Michael Terry (mterry) wrote :

- Why change onPressed to onClicked?
- Maybe use root.hide() instead of root.switchToNextState("")
- Do you need to set a sensingArea? Default sensing area is whole root window according to docs, which sounds reasonable.

review: Needs Information
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2105
http://jenkins.qa.ubuntu.com/job/unity8-ci/7019/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5941
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/434/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1724
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/427
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1619
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1619
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/426
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/425
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4589
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5952
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5952/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26438
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/188/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/432
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/432/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26439

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/7019/rebuild

review: Needs Fixing (continuous-integration)
Michael Terry (mterry) wrote :

OK, I love the Launcher.qml diff, thanks! :)

Since the two-tap-dismiss bug was a regression, this feels like a reasonable and easy thing to add a test for.

Why the LauncherPanel.qml changes? Seems reasonable to just close the quicklist in that case, like we did before. Do you like the close-launcher behavior better or was this a design-request or something?

Lukáš Tinkl (lukas-kde) wrote :

> Why the LauncherPanel.qml changes? Seems reasonable to just close the
> quicklist in that case, like we did before. Do you like the close-launcher
> behavior better or was this a design-request or something?

It wasn't anyone's request but it's just for the sake of consistency with unity7 behavior.

Michael Terry (mterry) wrote :

OK, makes sense, and good catch. :)

I still think a test here would be good though.

PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2106
http://jenkins.qa.ubuntu.com/job/unity8-ci/7020/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5943
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/435/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1725
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/428
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1620
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1620
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/427
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/426
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4591
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5954
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5954/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26441
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/189/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/433
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/433/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26443

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/7020/rebuild

review: Needs Fixing (continuous-integration)
Lukáš Tinkl (lukas-kde) wrote :

> OK, makes sense, and good catch. :)
>
> I still think a test here would be good though.

There is already a test (Launcher::test_dragndrop_cancel) but it's failing with touch (works fine with click tho :S); looking into that

PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2107
http://jenkins.qa.ubuntu.com/job/unity8-ci/7022/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5948
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/437/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1727
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/430
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1622
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1622
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/429
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/428
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4595
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5959
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5959/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26446
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/190/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/435
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/435/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26447

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/7022/rebuild

review: Needs Fixing (continuous-integration)
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2108
http://jenkins.qa.ubuntu.com/job/unity8-ci/7024/
Executed test runs:
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5951/console
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/439/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1729
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/432
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1624
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1624
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/431
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/430
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4597/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5962
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5962/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26450
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/191/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/437
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/437/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26449

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/7024/rebuild

review: Needs Fixing (continuous-integration)
Daniel d'Andrada (dandrader) wrote :

I wonder if the bug you're trying to fix is related to a more general problem:
https://bugs.launchpad.net/ubuntu/+source/qtmir/+bug/1531517

PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2109
http://jenkins.qa.ubuntu.com/job/unity8-ci/7025/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5953
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/440/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1730
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/433
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1625
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1625
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/432
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/431
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4599
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5964
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5964/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26452
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/192/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/438
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/438/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26453

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/7025/rebuild

review: Needs Fixing (continuous-integration)
Michael Terry (mterry) wrote :

OK, looks good to me then. Fixes the bug for me (or at least, works around a Mir bug by using InverseMouseArea). And fixes the haptic issue.

review: Approve
Daniel d'Andrada (dandrader) wrote :

I would hold this MP until we know what's the problem in bug 1531517.

Michael Terry (mterry) wrote :

@Daniel, yeah for sure there's some Mir oddities going on if switching to InverseMouseArea fixes it. This MP is more of a workaround for that, I believe.

If bug 1531517 fixes the underlying issue, then good.

But this MP seems reasonable regardless -- InverseMouseArea is the right widget for the job. Plus the haptic fix in this MP is also good.

Though I will note that the "signal hidePanel()" bit should be dropped, as discussed on IRC. Marking fix needed until that's done.

review: Needs Fixing
Lukáš Tinkl (lukas-kde) wrote :

Added a test for dismissing the launcher (twice) plus reverted the quick list closing on clicking outside it (as discussed with mterry)

Michael Terry (mterry) wrote :

OK, that was fast. I'm back on board with this fix. I'll approve, but will defer to Daniel's desire to wait and not top-approve yet.

review: Approve
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2110
http://jenkins.qa.ubuntu.com/job/unity8-ci/7026/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5957
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/441/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1731
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/434
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1626
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1626
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/433
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/432
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4603
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5968
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5968/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26460
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/193/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/439
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/439/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26459

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/7026/rebuild

review: Needs Fixing (continuous-integration)
Daniel d'Andrada (dandrader) wrote :

> I would hold this MP until we know what's the problem in bug 1531517.

Turned out to be a missing touch-pressed event on multi-finger taps/gestures. Don't think it affects this bug.

review: Abstain
Michael Terry (mterry) wrote :

Cool. So I'll top approve then.

PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2111
http://jenkins.qa.ubuntu.com/job/unity8-ci/7042/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5985
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/457/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1747
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/450
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1642
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1642
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/449
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/448
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4624
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5996
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5996/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26550
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/205/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/455
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/455/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26549

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/7042/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 'qml/Launcher/Launcher.qml'
2--- qml/Launcher/Launcher.qml 2015-11-24 17:44:18 +0000
3+++ qml/Launcher/Launcher.qml 2016-01-11 15:31:33 +0000
4@@ -184,18 +184,13 @@
5 }
6 }
7
8- MultiPointTouchArea {
9+ InverseMouseArea {
10 id: closeMouseArea
11- anchors {
12- left: launcherDragArea.right
13- top: parent.top
14- right: parent.right
15- bottom: parent.bottom
16- }
17+ anchors.fill: panel
18 enabled: root.shadeBackground && root.state == "visible"
19- visible: enabled // otherwise it will get in the way of cursor selection for some reason
20+ visible: enabled
21 onPressed: {
22- root.state = ""
23+ root.hide();
24 }
25 }
26
27
28=== modified file 'qml/Launcher/LauncherPanel.qml'
29--- qml/Launcher/LauncherPanel.qml 2015-12-03 10:18:14 +0000
30+++ qml/Launcher/LauncherPanel.qml 2016-01-11 15:31:33 +0000
31@@ -392,7 +392,6 @@
32 }
33
34 onClicked: {
35- Haptics.play();
36 var index = Math.floor((mouseY + launcherListView.realContentY) / launcherListView.realItemHeight);
37 var clickedItem = launcherListView.itemAt(mouseX, mouseY + launcherListView.realContentY)
38
39@@ -407,9 +406,11 @@
40 quickList.model = launcherListView.model.get(index).quickList;
41 quickList.appId = launcherListView.model.get(index).appId;
42 quickList.state = "open";
43- return
44+ return;
45 }
46
47+ Haptics.play();
48+
49 // First/last item do the scrolling at more than 12 degrees
50 if (index == 0 || index == launcherListView.count - 1) {
51 if (clickedItem.angle > 12) {
52@@ -636,6 +637,7 @@
53 rotation: 90
54 }
55 }
56+
57 InverseMouseArea {
58 anchors.fill: quickListShape
59 enabled: quickList.state == "open" || pressed
60
61=== modified file 'tests/qmltests/Launcher/tst_Launcher.qml'
62--- tests/qmltests/Launcher/tst_Launcher.qml 2015-12-03 10:18:14 +0000
63+++ tests/qmltests/Launcher/tst_Launcher.qml 2016-01-11 15:31:33 +0000
64@@ -625,6 +625,7 @@
65 if(data.mouse) {
66 mouseClick(root)
67 } else {
68+ touchRelease(draggedItem)
69 tap(root)
70 }
71
72@@ -739,6 +740,21 @@
73 mouseRelease(draggedItem);
74 }
75
76+ function test_launcher_dismiss() {
77+ dragLauncherIntoView();
78+ verify(launcher.state == "visible");
79+ mouseClick(root);
80+ waitUntilLauncherDisappears();
81+ verify(launcher.state == "");
82+
83+ // and repeat, as a test for regression in lpbug#1531339
84+ dragLauncherIntoView();
85+ verify(launcher.state == "visible");
86+ mouseClick(root);
87+ waitUntilLauncherDisappears();
88+ verify(launcher.state == "");
89+ }
90+
91 function test_quicklist_positioning_data() {
92 return [
93 {tag: "top", flickTo: "top", itemIndex: 0},

Subscribers

People subscribed via source and target branches