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
=== modified file 'qml/Launcher/LauncherPanel.qml'
--- qml/Launcher/LauncherPanel.qml 2014-11-04 12:52:02 +0000
+++ qml/Launcher/LauncherPanel.qml 2014-11-10 10:17:21 +0000
@@ -38,6 +38,12 @@
38 signal applicationSelected(string appId)38 signal applicationSelected(string appId)
39 signal showDashHome()39 signal showDashHome()
4040
41 onXChanged: {
42 if (quickList.state == "open") {
43 quickList.state = ""
44 }
45 }
46
41 Column {47 Column {
42 id: mainColumn48 id: mainColumn
43 anchors {49 anchors {
4450
=== modified file 'tests/qmltests/Launcher/tst_Launcher.qml'
--- tests/qmltests/Launcher/tst_Launcher.qml 2014-11-04 12:54:03 +0000
+++ tests/qmltests/Launcher/tst_Launcher.qml 2014-11-10 10:17:21 +0000
@@ -519,5 +519,23 @@
519 tryCompare(quickListShape, "visible", false)519 tryCompare(quickListShape, "visible", false)
520 }520 }
521 }521 }
522
523 function test_quicklistHideOnLauncherHide() {
524 dragLauncherIntoView();
525 var clickedItem = findChild(launcher, "launcherDelegate5")
526 var quickList = findChild(launcher, "quickList")
527
528 // Initial state
529 tryCompare(quickList, "state", "")
530
531 // Doing longpress
532 mousePress(clickedItem, clickedItem.width / 2, clickedItem.height / 2)
533 tryCompare(clickedItem, "itemOpacity", 0) // Wait for longpress to happen
534 verify(quickList, "state", "open")
535
536 launcher.hide();
537
538 tryCompare(quickList, "state", "");
539 }
522 }540 }
523}541}

Subscribers

People subscribed via source and target branches