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 {
|
||||
listItem: listItem
|
||||
listView: entriesListView
|
||||
onMoveRequested: entryModel.moveRows(rootIndex, oldIndex,
|
||||
1, rootIndex, newIndex)
|
||||
// FIXME: not sure why newIndex + 1 is required to be able to move a row at the end
|
||||
onMoveRequested: entryModel.moveRows(
|
||||
rootIndex, oldIndex, 1, rootIndex,
|
||||
oldIndex < newIndex ? newIndex + 1 : newIndex)
|
||||
}
|
||||
Kirigami.Icon {
|
||||
width: Kirigami.Units.iconSizes.smallMedium
|
||||
|
|
Loading…
Reference in New Issue