on xenial help sign in
Remove highlight when going over a non clickable item
a8445f7Albert Astals Cid
qml/Launcher/LauncherPanel.qml+2
@@ -813,6 +813,8 @@ Rectangle {
813 var item = quickListColumn.childAt(mouseX, mouseY);
813 var item = quickListColumn.childAt(mouseX, mouseY);
814 if (item.clickable) {
814 if (item.clickable) {
815 quickList.selectedIndex = item.index;
815 quickList.selectedIndex = item.index;
816+ } else {
817+ quickList.selectedIndex = -1;
816 }
818 }
817 }
819 }
818 }
820 }
tests/qmltests/Launcher/tst_Launcher.qml+7−1
@@ -1509,7 +1509,7 @@ Rectangle {
1509 // Initial state
1509 // Initial state
1510 tryCompare(quickList, "state", "")
1510 tryCompare(quickList, "state", "")
1511
1511
1512− // Doing longpress
1512+ // Open quickList
1513 mouseClick(clickedItem, clickedItem.width / 2, clickedItem.height / 2, Qt.RightButton)
1513 mouseClick(clickedItem, clickedItem.width / 2, clickedItem.height / 2, Qt.RightButton)
1514 verify(quickList, "state", "open")
1514 verify(quickList, "state", "open")
1515 compare(quickList.selectedIndex, -1)
1515 compare(quickList.selectedIndex, -1)
@@ -1519,6 +1519,12 @@ Rectangle {
1519 mouseMove(qEntry, qEntry.width / 2 + 1, qEntry.height / 2, 10);
1519 mouseMove(qEntry, qEntry.width / 2 + 1, qEntry.height / 2, 10);
1520
1520
1521 tryCompare(quickList, "selectedIndex", 0)
1521 tryCompare(quickList, "selectedIndex", 0)
1522+
1523+ qEntry = findChild(launcher, "quickListEntry1");
1524+ mouseMove(qEntry, qEntry.width / 2 , qEntry.height / 2, 10);
1525+ mouseMove(qEntry, qEntry.width / 2 + 1, qEntry.height / 2, 10);
1526+
1527+ tryCompare(quickList, "selectedIndex", -1)
1522 }
1528 }
1523 }
1529 }
1524}
1530}