More formal signal handler argument declarations

CCBUG: 475117
This commit is contained in:
Bart De Vries 2023-09-28 19:51:06 +02:00
parent f1024973b6
commit 38475c64fe
3 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ Controls.ItemDelegate {
implicitHeight: cardSize - 2 * borderWidth
acceptedButtons: Qt.LeftButton | Qt.RightButton
onClicked: {
onClicked: (mouse) => {
// Keep track of (currently) selected items
var modelIndex = feedDelegate.listView.model.index(index, 0);

View File

@ -131,7 +131,7 @@ Kirigami.SwipeListItem {
Kirigami.ListItemDragHandle {
listItem: loaderListItem
listView: loaderListView
onMoveRequested: {
onMoveRequested: (oldIndex, newIndex) => {
DataManager.moveQueueItem(oldIndex, newIndex);
// reset current selection when moving items
var modelIndex = listItem.listView.model.index(newIndex, 0);

View File

@ -40,7 +40,7 @@ Controls.Menu {
}
onObjectAdded: (index, object) => playbackRateMenu.insertItem(index, object)
onObjectRemoved: (object) => playbackRateMenu.removeItem(object)
onObjectRemoved: (index, object) => playbackRateMenu.removeItem(object)
}
Controls.MenuSeparator {