More formal signal handler argument declarations
CCBUG: 475117
This commit is contained in:
parent
f1024973b6
commit
38475c64fe
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user