Commit b39c32c0 authored by Konrad Materka's avatar Konrad Materka

[SystemTray] Fix QML Connections warnings

Fix warnings:
QML Connections: Implicitly defined onFoo properties in Connections are deprecated.
parent 38805dc0
......@@ -42,7 +42,9 @@ Item {
}
Connections {
target: internalSystray
onExpandedChanged: plasmoid.expanded = internalSystray.expanded
function onExpandedChanged() {
plasmoid.expanded = internalSystray.expanded
}
}
property Item internalSystray
......@@ -59,7 +61,7 @@ Item {
Connections {
target: plasmoid.nativeInterface
onInternalSystrayChanged: {
function onInternalSystrayChanged() {
root.internalSystray = plasmoid.nativeInterface.internalSystray;
root.internalSystray.parent = root;
root.internalSystray.anchors.fill = root;
......
......@@ -74,9 +74,9 @@ MouseArea {
target: hiddenTasks.model
// hiddenTasks.count is not updated when ListView is hidden and is not rendered
// manually update itemCount so that expander arrow hides/shows itself correctly
onModelReset: hiddenTasks.itemCount = hiddenTasks.model.rowCount()
onRowsInserted: hiddenTasks.itemCount = hiddenTasks.model.rowCount()
onRowsRemoved: hiddenTasks.itemCount = hiddenTasks.model.rowCount()
onLayoutChanged: hiddenTasks.itemCount = hiddenTasks.model.rowCount()
function onModelReset() {hiddenTasks.itemCount = hiddenTasks.model.rowCount()}
function onRowsInserted() {hiddenTasks.itemCount = hiddenTasks.model.rowCount()}
function onRowsRemoved() {hiddenTasks.itemCount = hiddenTasks.model.rowCount()}
function onLayoutChanged() {hiddenTasks.itemCount = hiddenTasks.model.rowCount()}
}
}
......@@ -74,7 +74,7 @@ StackView {
}
Connections {
target: plasmoid
onAppletRemoved: {
function onAppletRemoved() {
if (applet == root.activeApplet) {
mainStack.clear()
}
......
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