From 7b15a5eab796008d4a2a21ba0e632dbfcc293b81 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Fri, 21 Jul 2023 12:27:12 +0300 Subject: [PATCH] Fix warnings about old style QML connections --- declarativeplugin/qml/PluginChecker.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/declarativeplugin/qml/PluginChecker.qml b/declarativeplugin/qml/PluginChecker.qml index 082fb242c..64d5be716 100644 --- a/declarativeplugin/qml/PluginChecker.qml +++ b/declarativeplugin/qml/PluginChecker.qml @@ -29,8 +29,8 @@ QtObject { readonly property var v: DBusAsyncResponse { id: availableResponse autoDelete: false - onSuccess: { root.available = result; } - onError: { root.available = false } + onSuccess: (result) => { root.available = result; } + onError: () => { root.available = false } } function pluginsChanged() { @@ -42,7 +42,7 @@ QtObject { readonly property var vv: DBusAsyncResponse { id: iconResponse autoDelete: false - onSuccess: { root.iconName = result; } - onError: { root.iconName = "" } + onSuccess: (result) => { root.iconName = result; } + onError: () => { root.iconName = "" } } }