summaryrefslogtreecommitdiffstats
path: root/tests/qml/configs/apps/test.configs.app/app.qml
diff options
context:
space:
mode:
authorBernd Weimer <bernd.weimer@pelagicore.com>2020-03-13 17:53:13 +0100
committerBernd Weimer <bernd.weimer@pelagicore.com>2020-05-27 14:08:28 +0000
commitdf0d5e4730a85fd7ce13d10aced5fdb3ae7feef9 (patch)
tree23faf7bb0bd94b062ac00a2c6d5dd5641c9408c4 /tests/qml/configs/apps/test.configs.app/app.qml
parent042476a1c1d18c5838791fc71e6dbb1d0d7e8b4e (diff)
Define functions in QML Connections explicitly
Don't use implicitly defined handler, since this is deprecated from Qt 5.15. This works since Qt 5.14 only, but we are tied to 5.15, anyways. Change-Id: I82e66b0c6186237757e060bfb21d86c91ec8498b Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'tests/qml/configs/apps/test.configs.app/app.qml')
-rw-r--r--tests/qml/configs/apps/test.configs.app/app.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/qml/configs/apps/test.configs.app/app.qml b/tests/qml/configs/apps/test.configs.app/app.qml
index 402364ce..9013a1c6 100644
--- a/tests/qml/configs/apps/test.configs.app/app.qml
+++ b/tests/qml/configs/apps/test.configs.app/app.qml
@@ -66,7 +66,7 @@ ApplicationManagerWindow {
Connections {
target: extension.object
- onTrigger: {
+ function onTrigger(type) {
if (type === "Notification") {
if (target.func("bar") === 42)
notification.show();
@@ -78,7 +78,9 @@ ApplicationManagerWindow {
Connections {
target: ApplicationInterface
- onQuit: target.acknowledgeQuit();
+ function onQuit() {
+ target.acknowledgeQuit();
+ }
}
Component.onCompleted: {