diff options
author | Papoteur <papoteur@mageia.org> | 2021-04-24 13:01:05 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2021-04-24 13:01:05 +0200 |
commit | ef0a5c970cef010598efc89ecbbc250de0ad8ea2 (patch) | |
tree | ee15d98983c9bd2c2f265b3a2367e3e1065ee3a6 | |
parent | b3d11f0c15edabcc74b660c79a30cacc0b449a75 (diff) | |
download | mageiawelcome-ef0a5c970cef010598efc89ecbbc250de0ad8ea2.tar mageiawelcome-ef0a5c970cef010598efc89ecbbc250de0ad8ea2.tar.gz mageiawelcome-ef0a5c970cef010598efc89ecbbc250de0ad8ea2.tar.bz2 mageiawelcome-ef0a5c970cef010598efc89ecbbc250de0ad8ea2.tar.xz mageiawelcome-ef0a5c970cef010598efc89ecbbc250de0ad8ea2.zip |
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(<arguments>) { ... }
-rw-r--r-- | qml/mw-ui.qml | 8 |
1 files changed, 4 insertions, 4 deletions
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 |