fix: do not use Implicit QML function call

Qt 5.15 introduced new syntax for defining Connections. Fix warnings like this one:
    QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }

follow up of d2f3372749
icc-effect-5.26.4
Srevin Saju 2021-01-10 13:32:17 +03:00
parent 7205c85b98
commit 68a7daff58
No known key found for this signature in database
GPG Key ID: 1007816766D390D7
1 changed files with 3 additions and 1 deletions

View File

@ -276,7 +276,9 @@ PlasmaCore.Dialog {
Connections {
target: workspace
onCurrentDesktopChanged: dialogItem.show()
function onCurrentDesktopChanged() {
dialogItem.show()
}
function onNumberDesktopsChanged() {
repeater.model = workspace.desktops;
}