Commit fb22bc51 authored by Konrad Materka's avatar Konrad Materka

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 c3a8cc56
......@@ -108,7 +108,7 @@ PlasmaComponents3.Page {
Connections {
target: plasmoid
onExpandedChanged: {
function onExpandedChanged(expanded) {
connectionView.currentVisibleButtonIndex = -1;
if (expanded) {
......
......@@ -165,12 +165,12 @@ ColumnLayout {
Connections {
target: handler
onHotspotCreated: {
function onHotspotCreated() {
hotspotButton.checked = true
tooltip.text = i18n("Disable Hotspot")
}
onHotspotDisabled: {
function onHotspotDisabled() {
hotspotButton.checked = false
tooltip.text = i18n("Create Hotspot")
}
......
......@@ -40,8 +40,12 @@ Item {
Connections {
target: listItem
onCheckedChanged: background.color = (listItem.checked ? highlightColor : baseColor)
onSectionDelegateChanged: background.color = (listItem.sectionDelegate ? alternateBaseColor : baseColor)
function onCheckedChanged() {
background.color = (listItem.checked ? highlightColor : baseColor)
}
function onSectionDelegateChanged() {
background.color = (listItem.sectionDelegate ? alternateBaseColor : baseColor)
}
}
Rectangle {
......
......@@ -67,7 +67,7 @@ ScrollViewKCM {
type: Kirigami.MessageType.Warning
Connections {
target: handler
onConnectionActivationFailed: {
function onConnectionActivationFailed(connectionPath, message) {
inlineError.text = message;
inlineError.visible = true;
}
......
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