@@ -1235,13 +1235,13 @@ Rectangle {
12351235 tryCompare(quickList, "selectedIndex", 0)
12361236
12371237 // Down should move down the quicklist
1238+ // Because item 1 is not selectable
12381239 keyClick(Qt.Key_Down);
1239− tryCompare(quickList, "selectedIndex", 1)
1240+ tryCompare(quickList, "selectedIndex", 2)
12401241
12411242 // The quicklist should wrap around too
12421243 keyClick(Qt.Key_Down);
12431244 keyClick(Qt.Key_Down);
1244− keyClick(Qt.Key_Down);
12451245 tryCompare(quickList, "selectedIndex", 0)
12461246
12471247 // Left gets us back to the launcher
@@ -1266,14 +1266,14 @@ Rectangle {
12661266
12671267 keyClick(Qt.Key_Down); // Down to launcher item 0
12681268 keyClick(Qt.Key_Down); // Down to launcher item 1
1269− keyClick(Qt.Key_Right); // Into quicklist
1270− keyClick(Qt.Key_Down); // Down to quicklist item 1
1271− keyClick(Qt.Key_Down); // Down to quicklist item 2
1269+ keyClick(Qt.Key_Right); // Into quicklist, item 0 is selected
1270+ keyClick(Qt.Key_Down); // Down to quicklist item 2 (because 1 is not selectable)
1271+ keyClick(Qt.Key_Down); // Down to quicklist item 3
12721272 keyClick(Qt.Key_Enter); // Trigger it
12731273
12741274 compare(signalSpy.count, 1, "Quicklist signal wasn't triggered")
12751275 compare(signalSpy.signalArguments[0][0], LauncherModel.get(1).appId)
1276− compare(signalSpy.signalArguments[0][1], 2)
1276+ compare(signalSpy.signalArguments[0][1], 3)
12771277 assertFocusOnIndex(-2);
12781278 }
12791279
@@ -1500,5 +1500,25 @@ Rectangle {
15001500 tryCompare(launcher, "maxPanelX", 0);
15011501 launcher.panelWidth = oldSize;
15021502 }
1503+
1504+ function test_mouseHoverSelectQuickList() {
1505+ dragLauncherIntoView();
1506+ var clickedItem = findChild(launcher, "launcherDelegate5")
1507+ var quickList = findChild(launcher, "quickList")
1508+
1509+ // Initial state
1510+ tryCompare(quickList, "state", "")
1511+
1512+ // Doing longpress
1513+ mouseClick(clickedItem, clickedItem.width / 2, clickedItem.height / 2, Qt.RightButton)
1514+ verify(quickList, "state", "open")
1515+ compare(quickList.selectedIndex, -1)
1516+
1517+ var qEntry = findChild(launcher, "quickListEntry0");
1518+ mouseMove(qEntry, qEntry.width / 2 , qEntry.height / 2, 10);
1519+ mouseMove(qEntry, qEntry.width / 2 + 1, qEntry.height / 2, 10);
1520+
1521+ tryCompare(quickList, "selectedIndex", 0)
1522+ }
15031523 }
15041524}