really fix multi-highlighing

This commit is contained in:
Dante Ruiz 2018-01-25 15:09:03 -08:00
parent 07842f8e54
commit f3e20e72cb

View file

@ -148,6 +148,18 @@ Item {
previousGridIndex = currentIndex
}
onMovementStarted: {
if (currentIndex < 0 || gridView.currentItem === undefined || gridView.contentItem.children.length - 1 < currentIndex) {
return;
}
var button = gridView.contentItem.children[currentIndex].children[0];
if (button.isActive) {
button.state = "active state";
} else {
button.state = "base state";
}
}
cellWidth: width/3
cellHeight: cellWidth
flow: GridView.LeftToRight