on xenial help sign in
hint the launcher to indicate a successful size change to the user (LP: #1646457)
64d94a3Michael Zanetti
qml/Launcher/Launcher.qml+4
@@ -108,6 +108,10 @@ FocusScope {
108 }
108 }
109 }
109 }
110
110
111+ onPanelWidthChanged: {
112+ hint();
113+ }
114+
111 function hide(flags) {
115 function hide(flags) {
112 if ((flags & ignoreHideIfMouseOverLauncher) && Utils.Functions.itemUnderMouse(panel)) {
116 if ((flags & ignoreHideIfMouseOverLauncher) && Utils.Functions.itemUnderMouse(panel)) {
113 return;
117 return;
tests/qmltests/Launcher/tst_Launcher.qml+10
@@ -295,6 +295,8 @@ Rectangle {
295 compare(listView.snapMode, ListView.SnapToItem, "Snapping is not enabled");
295 compare(listView.snapMode, ListView.SnapToItem, "Snapping is not enabled");
296
296
297 removeTimeConstraintsFromSwipeAreas(root);
297 removeTimeConstraintsFromSwipeAreas(root);
298+
299+ waitUntilLauncherDisappears();
298 }
300 }
299
301
300 function dragLauncher() {
302 function dragLauncher() {
@@ -1478,5 +1480,13 @@ Rectangle {
1478
1480
1479 launcher.available = true;
1481 launcher.available = true;
1480 }
1482 }
1483+
1484+ function test_hintOnSizeChange() {
1485+ var oldSize = launcher.panelWidth;
1486+ launcher.maxPanelX = -launcher.panelWidth;
1487+ launcher.panelWidth = oldSize + units.gu(2);
1488+ tryCompare(launcher, "maxPanelX", 0);
1489+ launcher.panelWidth = oldSize;
1490+ }
1481 }
1491 }
1482}
1492}