Quick GUI: Allow moving entries to the bottom
This commit is contained in:
parent
162161d07c
commit
10ab060568
|
@ -230,8 +230,10 @@ Kirigami.ScrollablePage {
|
||||||
Kirigami.ListItemDragHandle {
|
Kirigami.ListItemDragHandle {
|
||||||
listItem: listItem
|
listItem: listItem
|
||||||
listView: entriesListView
|
listView: entriesListView
|
||||||
onMoveRequested: entryModel.moveRows(rootIndex, oldIndex,
|
// FIXME: not sure why newIndex + 1 is required to be able to move a row at the end
|
||||||
1, rootIndex, newIndex)
|
onMoveRequested: entryModel.moveRows(
|
||||||
|
rootIndex, oldIndex, 1, rootIndex,
|
||||||
|
oldIndex < newIndex ? newIndex + 1 : newIndex)
|
||||||
}
|
}
|
||||||
Kirigami.Icon {
|
Kirigami.Icon {
|
||||||
width: Kirigami.Units.iconSizes.smallMedium
|
width: Kirigami.Units.iconSizes.smallMedium
|
||||||
|
|
Loading…
Reference in New Issue