From 784b2853caf350fe0cc34f5f32950f5127de1845 Mon Sep 17 00:00:00 2001 From: Yifan Zhu Date: Wed, 10 Jan 2024 09:29:10 -0800 Subject: [PATCH] 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). --- smsapp/qml/ConversationList.qml | 2 +- smsapp/qml/SendingArea.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/smsapp/qml/ConversationList.qml b/smsapp/qml/ConversationList.qml index c3ec8967a..0ad5661c7 100644 --- a/smsapp/qml/ConversationList.qml +++ b/smsapp/qml/ConversationList.qml @@ -163,7 +163,7 @@ Kirigami.ScrollablePage Shortcut { sequence: "Ctrl+N" - onActivated: newButton.onClicked() + onActivated: newButton.clicked() } } } diff --git a/smsapp/qml/SendingArea.qml b/smsapp/qml/SendingArea.qml index 119bb4acb..63a3697f8 100644 --- a/smsapp/qml/SendingArea.qml +++ b/smsapp/qml/SendingArea.qml @@ -88,7 +88,7 @@ ColumnLayout { if (event.modifiers & Qt.ShiftModifier) { messageField.append("") } else { - sendButton.onClicked() + sendButton.clicked() event.accepted = true } }