on xenial help sign in
make highlight follow mouse hover
ed07c5aMichael Zanetti
qml/Stages/DesktopStage.qml+7−3
@@ -281,9 +281,13 @@ Rectangle {
281 // return to false if the MouseArea is disabled while
281 // return to false if the MouseArea is disabled while
282 // containing the mouse. Let's manage the property our own.
282 // containing the mouse. Let's manage the property our own.
283 property bool upperThirdContainsMouse: false
283 property bool upperThirdContainsMouse: false
284− onContainsMouseChanged: evaluateUpperThirdContainsMouse()
284+ onContainsMouseChanged: evaluateContainsMouse()
285− onMouseYChanged: evaluateUpperThirdContainsMouse()
285+ onMouseYChanged: evaluateContainsMouse()
286− function evaluateUpperThirdContainsMouse() {
286+ function evaluateContainsMouse() {
287+ if (containsMouse) {
288+ appRepeater.highlightedIndex = index
289+ }
290+
287 if (containsMouse && mouseY < height / 3) {
291 if (containsMouse && mouseY < height / 3) {
288 spreadSelectArea.upperThirdContainsMouse = true
292 spreadSelectArea.upperThirdContainsMouse = true
289 } else {
293 } else {