Merge lp:~mzanetti/unity8/hide-quicklist-on-launcher-hide into lp:unity8

Proposed by Michael Zanetti
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 1432
Merged at revision: 1441
Proposed branch: lp:~mzanetti/unity8/hide-quicklist-on-launcher-hide
Merge into: lp:unity8
Diff against target: 44 lines (+24/-0)
2 files modified
qml/Launcher/LauncherPanel.qml (+6/-0)
tests/qmltests/Launcher/tst_Launcher.qml (+18/-0)
To merge this branch: bzr merge lp:~mzanetti/unity8/hide-quicklist-on-launcher-hide
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Albert Astals Cid (community) Approve
Review via email: mp+241247@code.launchpad.net

Commit message

hide quicklist when launcher hides

Description of the change

 * 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?

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
Albert Astals Cid (aacid) wrote :

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

* Did CI run pass?
Waiting before top approval

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

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) 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 'qml/Launcher/LauncherPanel.qml'
2--- qml/Launcher/LauncherPanel.qml 2014-11-04 12:52:02 +0000
3+++ qml/Launcher/LauncherPanel.qml 2014-11-10 10:17:21 +0000
4@@ -38,6 +38,12 @@
5 signal applicationSelected(string appId)
6 signal showDashHome()
7
8+ onXChanged: {
9+ if (quickList.state == "open") {
10+ quickList.state = ""
11+ }
12+ }
13+
14 Column {
15 id: mainColumn
16 anchors {
17
18=== modified file 'tests/qmltests/Launcher/tst_Launcher.qml'
19--- tests/qmltests/Launcher/tst_Launcher.qml 2014-11-04 12:54:03 +0000
20+++ tests/qmltests/Launcher/tst_Launcher.qml 2014-11-10 10:17:21 +0000
21@@ -519,5 +519,23 @@
22 tryCompare(quickListShape, "visible", false)
23 }
24 }
25+
26+ function test_quicklistHideOnLauncherHide() {
27+ dragLauncherIntoView();
28+ var clickedItem = findChild(launcher, "launcherDelegate5")
29+ var quickList = findChild(launcher, "quickList")
30+
31+ // Initial state
32+ tryCompare(quickList, "state", "")
33+
34+ // Doing longpress
35+ mousePress(clickedItem, clickedItem.width / 2, clickedItem.height / 2)
36+ tryCompare(clickedItem, "itemOpacity", 0) // Wait for longpress to happen
37+ verify(quickList, "state", "open")
38+
39+ launcher.hide();
40+
41+ tryCompare(quickList, "state", "");
42+ }
43 }
44 }

Subscribers

People subscribed via source and target branches