Commit 9ee0148a authored by Konrad Materka's avatar Konrad Materka
Browse files

Fix Connections warnings

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>) { ... }
parent 82ccfe67
......@@ -137,11 +137,11 @@ Kirigami.AbstractApplicationWindow {
}
Connections {
target: lnfLogic
onThumbnailPathChanged: {
function onThumbnailPathChanged() {
thumbnail.source = ""
thumbnail.source = lnfLogic.thumbnailPath
}
onMessageRequested: {
function onMessageRequested(level, message) {
root.showPassiveNotification(message);
}
}
......
......@@ -125,7 +125,9 @@ PlasmaCore.ToolTipArea {
Connections {
target: plasmoid.action("configure")
onTriggered: plasmoid.expanded = false
function onTriggered() {
plasmoid.expanded = false
}
}
PlasmaCore.Dialog {
......
......@@ -35,7 +35,7 @@ Item {
Connections {
target: kcm
onNeedsSaveChanged: {
function onNeedsSaveChanged() {
if (kcm.needsSave) {
page.configurationChanged();
}
......
......@@ -44,14 +44,22 @@ PlasmaCore.FrameSvgItem {
//BEGIN Connections
Connections {
target: panel
onOffsetChanged: ruler.offset = panel.offset
onMinimumLengthChanged: ruler.minimumLength = panel.minimumLength
onMaximumLengthChanged: ruler.maximumLength = panel.maximumLength
function onOffsetChanged() {
ruler.offset = panel.offset
}
function onMinimumLengthChanged() {
ruler.minimumLength = panel.minimumLength
}
function onMaximumLengthChanged() {
ruler.maximumLength = panel.maximumLength
}
}
Connections {
target: plasmoid
onImmutableChanged: configDialog.close()
function onImmutableChanged() {
configDialog.close()
}
}
//END Connections
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment