Call signals instead of signal handlers
Directly calling signals is the supported way to send signals. Calling signal handlers worked in the past, but will be phased out in the future (https://bugreports.qt.io/browse/QTBUG-120573).
This commit is contained in:
parent
3f97274b4a
commit
784b2853ca
2 changed files with 2 additions and 2 deletions
|
@ -163,7 +163,7 @@ Kirigami.ScrollablePage
|
|||
|
||||
Shortcut {
|
||||
sequence: "Ctrl+N"
|
||||
onActivated: newButton.onClicked()
|
||||
onActivated: newButton.clicked()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -88,7 +88,7 @@ ColumnLayout {
|
|||
if (event.modifiers & Qt.ShiftModifier) {
|
||||
messageField.append("")
|
||||
} else {
|
||||
sendButton.onClicked()
|
||||
sendButton.clicked()
|
||||
event.accepted = true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue