mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
really fix multi-highlighing
This commit is contained in:
parent
07842f8e54
commit
f3e20e72cb
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue