From d7a7671d01298e73f728f2a0862b037adb185b75 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sat, 24 Apr 2021 13:01:05 +0200 Subject: Suppress a warning on event function call. The warning was QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo() { ... } --- qml/mw-ui.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'qml') diff --git a/qml/mw-ui.qml b/qml/mw-ui.qml index 631852e..f5bf51f 100644 --- a/qml/mw-ui.qml +++ b/qml/mw-ui.qml @@ -560,19 +560,19 @@ Rectangle { Connections { target: launch - onInstalled: { + function onInstalled() { // get the signal to reload the applist console.log("Reload applications list") itemModel.update_list(categoriesList.currentItem.myGroup) } - onRepo: { + function onRepo() { // get the signal that core repo is not enabled console.log("Core repository is not enabled") no_core.visible = true } - onNeeded: { + function onNeeded(repo) { // get the signal that tainted repo is not enabled console.log("%1 is not enabled".arg(repo)) if (repo == "non-free") { @@ -586,7 +586,7 @@ Rectangle { } } - onNoprogram: { + function onNoprogram() { // get the signal that the command doesn't exist' console.log("The program is not installed") no_program.visible = true -- cgit v1.2.1