Explicitly capture QML signal handler arguments - Shortcuts

This commit is contained in:
Casper Jeukendrup 2021-12-14 15:31:24 +01:00 committed by pereverzev+v
parent d8280717cc
commit 61a25747d9
6 changed files with 7 additions and 7 deletions

View file

@ -192,11 +192,11 @@ Dialog {
}
}
Keys.onShortcutOverride: {
Keys.onShortcutOverride: function(event) {
event.accepted = true
}
Keys.onPressed: {
Keys.onPressed: function(event) {
model.inputKey(event.key, event.modifiers)
}
}

View file

@ -58,7 +58,7 @@ Item {
EditShortcutDialog {
id: editShortcutDialog
onApplySequenceRequested: {
onApplySequenceRequested: function(newSequence) {
shortcutsModel.applySequenceToCurrentShortcut(newSequence)
}

View file

@ -42,7 +42,7 @@ Row {
direction: NavigationPanel.Horizontal
accessible.name: qsTrc("shortcuts", "Midi mapping bottom panel")
onActiveChanged: {
onActiveChanged: function(active) {
if (active) {
root.forceActiveFocus()
}

View file

@ -38,7 +38,7 @@ RowLayout {
direction: NavigationPanel.Horizontal
accessible.name: qsTrc("shortcuts", "Midi mapping top panel")
onActiveChanged: {
onActiveChanged: function(active) {
if (active) {
root.forceActiveFocus()
}

View file

@ -44,7 +44,7 @@ RowLayout {
direction: NavigationPanel.Horizontal
accessible.name: qsTrc("shortcuts", "Shortcuts bottom panel")
onActiveChanged: {
onActiveChanged: function(active) {
if (active) {
root.forceActiveFocus()
}

View file

@ -44,7 +44,7 @@ RowLayout {
direction: NavigationPanel.Horizontal
accessible.name: qsTrc("shortcuts", "Shortcuts top panel")
onActiveChanged: {
onActiveChanged: function(active) {
if (active) {
root.forceActiveFocus()
}