@@ -1254,14 +1254,14 @@ Rectangle {
12541254 tryCompare(quickList, "selectedIndex", 0)
12551255
12561256 // Down should move down the quicklist
1257+ // Because item 1 is not selectable
12571258 keyClick(Qt.Key_Down);
1258− tryCompare(quickList, "selectedIndex", 1)
1259+ tryCompare(quickList, "selectedIndex", 2)
12591260
12601261 // The quicklist should wrap around too
12611262 keyClick(Qt.Key_Down);
12621263 keyClick(Qt.Key_Down);
12631264 keyClick(Qt.Key_Down);
1264− keyClick(Qt.Key_Down);
12651265 tryCompare(quickList, "selectedIndex", 0)
12661266
12671267 // Left gets us back to the launcher
@@ -1286,14 +1286,14 @@ Rectangle {
12861286
12871287 keyClick(Qt.Key_Down); // Down to launcher item 0
12881288 keyClick(Qt.Key_Down); // Down to launcher item 1
1289− keyClick(Qt.Key_Right); // Into quicklist
1290− keyClick(Qt.Key_Down); // Down to quicklist item 1
1291− keyClick(Qt.Key_Down); // Down to quicklist item 2
1289+ keyClick(Qt.Key_Right); // Into quicklist, item 0 is selected
1290+ keyClick(Qt.Key_Down); // Down to quicklist item 2 (because 1 is not selectable)
1291+ keyClick(Qt.Key_Down); // Down to quicklist item 3
12921292 keyClick(Qt.Key_Enter); // Trigger it
12931293
12941294 compare(signalSpy.count, 1, "Quicklist signal wasn't triggered")
12951295 compare(signalSpy.signalArguments[0][0], LauncherModel.get(1).appId)
1296− compare(signalSpy.signalArguments[0][1], 2)
1296+ compare(signalSpy.signalArguments[0][1], 3)
12971297 assertFocusOnIndex(-2);
12981298 }
12991299
@@ -1542,5 +1542,31 @@ Rectangle {
15421542 tryCompare(launcher, "maxPanelX", 0);
15431543 launcher.panelWidth = oldSize;
15441544 }
1545+
1546+ function test_mouseHoverSelectQuickList() {
1547+ dragLauncherIntoView();
1548+ var clickedItem = findChild(launcher, "launcherDelegate5")
1549+ var quickList = findChild(launcher, "quickList")
1550+
1551+ // Initial state
1552+ tryCompare(quickList, "state", "")
1553+
1554+ // Open quickList
1555+ mouseClick(clickedItem, clickedItem.width / 2, clickedItem.height / 2, Qt.RightButton)
1556+ verify(quickList, "state", "open")
1557+ compare(quickList.selectedIndex, -1)
1558+
1559+ var qEntry = findChild(launcher, "quickListEntry0");
1560+ mouseMove(qEntry, qEntry.width / 2 , qEntry.height / 2, 10);
1561+ mouseMove(qEntry, qEntry.width / 2 + 1, qEntry.height / 2, 10);
1562+
1563+ tryCompare(quickList, "selectedIndex", 0)
1564+
1565+ qEntry = findChild(launcher, "quickListEntry1");
1566+ mouseMove(qEntry, qEntry.width / 2 , qEntry.height / 2, 10);
1567+ mouseMove(qEntry, qEntry.width / 2 + 1, qEntry.height / 2, 10);
1568+
1569+ tryCompare(quickList, "selectedIndex", -1)
1570+ }
15451571 }
15461572}