|
|
|
@ -155,6 +155,7 @@ GridView {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Keys.onUpPressed: {
|
|
|
|
Keys.onUpPressed: {
|
|
|
|
|
|
|
|
if (!editor || !editor.targetItem) {
|
|
|
|
var newIndex = positioner.nearestItem(currentIndex,
|
|
|
|
var newIndex = positioner.nearestItem(currentIndex,
|
|
|
|
effectiveNavDirection(control.flow, control.effectiveLayoutDirection, Qt.UpArrow))
|
|
|
|
effectiveNavDirection(control.flow, control.effectiveLayoutDirection, Qt.UpArrow))
|
|
|
|
if (newIndex !== -1) {
|
|
|
|
if (newIndex !== -1) {
|
|
|
|
@ -162,7 +163,9 @@ GridView {
|
|
|
|
updateSelection(event.modifiers)
|
|
|
|
updateSelection(event.modifiers)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
Keys.onDownPressed: {
|
|
|
|
Keys.onDownPressed: {
|
|
|
|
|
|
|
|
if (!editor || !editor.targetItem) {
|
|
|
|
var newIndex = positioner.nearestItem(currentIndex,
|
|
|
|
var newIndex = positioner.nearestItem(currentIndex,
|
|
|
|
effectiveNavDirection(control.flow, control.effectiveLayoutDirection, Qt.DownArrow))
|
|
|
|
effectiveNavDirection(control.flow, control.effectiveLayoutDirection, Qt.DownArrow))
|
|
|
|
if (newIndex !== -1) {
|
|
|
|
if (newIndex !== -1) {
|
|
|
|
@ -170,7 +173,9 @@ GridView {
|
|
|
|
updateSelection(event.modifiers)
|
|
|
|
updateSelection(event.modifiers)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
Keys.onLeftPressed: {
|
|
|
|
Keys.onLeftPressed: {
|
|
|
|
|
|
|
|
if (!editor || !editor.targetItem) {
|
|
|
|
var newIndex = positioner.nearestItem(currentIndex,
|
|
|
|
var newIndex = positioner.nearestItem(currentIndex,
|
|
|
|
effectiveNavDirection(control.flow, control.effectiveLayoutDirection, Qt.LeftArrow))
|
|
|
|
effectiveNavDirection(control.flow, control.effectiveLayoutDirection, Qt.LeftArrow))
|
|
|
|
if (newIndex !== -1) {
|
|
|
|
if (newIndex !== -1) {
|
|
|
|
@ -178,7 +183,9 @@ GridView {
|
|
|
|
updateSelection(event.modifiers)
|
|
|
|
updateSelection(event.modifiers)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
Keys.onRightPressed: {
|
|
|
|
Keys.onRightPressed: {
|
|
|
|
|
|
|
|
if (!editor || !editor.targetItem) {
|
|
|
|
var newIndex = positioner.nearestItem(currentIndex,
|
|
|
|
var newIndex = positioner.nearestItem(currentIndex,
|
|
|
|
effectiveNavDirection(control.flow, control.effectiveLayoutDirection, Qt.RightArrow))
|
|
|
|
effectiveNavDirection(control.flow, control.effectiveLayoutDirection, Qt.RightArrow))
|
|
|
|
if (newIndex !== -1) {
|
|
|
|
if (newIndex !== -1) {
|
|
|
|
@ -186,6 +193,7 @@ GridView {
|
|
|
|
updateSelection(event.modifiers)
|
|
|
|
updateSelection(event.modifiers)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
cellHeight: {
|
|
|
|
cellHeight: {
|
|
|
|
var iconHeight = iconSize + (FishUI.Units.fontMetrics.height * 2) + FishUI.Units.largeSpacing * 2
|
|
|
|
var iconHeight = iconSize + (FishUI.Units.fontMetrics.height * 2) + FishUI.Units.largeSpacing * 2
|
|
|
|
|