Explicitly capture QML signal handler arguments - Shortcuts
This commit is contained in:
parent
d8280717cc
commit
61a25747d9
6 changed files with 7 additions and 7 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ Item {
|
|||
EditShortcutDialog {
|
||||
id: editShortcutDialog
|
||||
|
||||
onApplySequenceRequested: {
|
||||
onApplySequenceRequested: function(newSequence) {
|
||||
shortcutsModel.applySequenceToCurrentShortcut(newSequence)
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ Row {
|
|||
direction: NavigationPanel.Horizontal
|
||||
accessible.name: qsTrc("shortcuts", "Midi mapping bottom panel")
|
||||
|
||||
onActiveChanged: {
|
||||
onActiveChanged: function(active) {
|
||||
if (active) {
|
||||
root.forceActiveFocus()
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ RowLayout {
|
|||
direction: NavigationPanel.Horizontal
|
||||
accessible.name: qsTrc("shortcuts", "Midi mapping top panel")
|
||||
|
||||
onActiveChanged: {
|
||||
onActiveChanged: function(active) {
|
||||
if (active) {
|
||||
root.forceActiveFocus()
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ RowLayout {
|
|||
direction: NavigationPanel.Horizontal
|
||||
accessible.name: qsTrc("shortcuts", "Shortcuts bottom panel")
|
||||
|
||||
onActiveChanged: {
|
||||
onActiveChanged: function(active) {
|
||||
if (active) {
|
||||
root.forceActiveFocus()
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ RowLayout {
|
|||
direction: NavigationPanel.Horizontal
|
||||
accessible.name: qsTrc("shortcuts", "Shortcuts top panel")
|
||||
|
||||
onActiveChanged: {
|
||||
onActiveChanged: function(active) {
|
||||
if (active) {
|
||||
root.forceActiveFocus()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue