summaryrefslogtreecommitdiffstats
path: root/qml
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2021-04-24 13:01:05 +0200
committerPapoteur <papoteur@mageia.org>2021-04-24 14:38:32 +0200
commitd7a7671d01298e73f728f2a0862b037adb185b75 (patch)
treef18121bad086fa81b2849c8833175dbea573dad3 /qml
parent3f5a9e0154aece6c95833acf747747cef1926e18 (diff)
downloadmageiawelcome-d7a7671d01298e73f728f2a0862b037adb185b75.tar
mageiawelcome-d7a7671d01298e73f728f2a0862b037adb185b75.tar.gz
mageiawelcome-d7a7671d01298e73f728f2a0862b037adb185b75.tar.bz2
mageiawelcome-d7a7671d01298e73f728f2a0862b037adb185b75.tar.xz
mageiawelcome-d7a7671d01298e73f728f2a0862b037adb185b75.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>) { ... }
Diffstat (limited to 'qml')
-rw-r--r--qml/mw-ui.qml8
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