Commit 21236814 authored by Daan De Meyer's avatar Daan De Meyer
Browse files

Fix Connections deprecation warnings

parent e77907cf
......@@ -74,8 +74,8 @@ Item {
Connections {
target: plasmoid
onExpandedChanged: {
if (!expanded) {
function onExpandedChanged() {
if (!plasmoid.expanded) {
reset();
}
}
......
......@@ -49,8 +49,8 @@ Item {
Connections {
target: plasmoid
onExpandedChanged: {
if (!expanded) {
function onExpandedChanged() {
if (!plasmoid.expanded) {
baseView.currentIndex = -1;
}
}
......
......@@ -116,8 +116,8 @@ Item {
Connections {
target: plasmoid
onExpandedChanged: {
if (!expanded) {
function onExpandedChanged() {
if (!plasmoid.expanded) {
favoritesView.currentIndex = -1;
}
}
......
......@@ -445,7 +445,7 @@ Item {
if(menuItemsChanged()) {
createButtons();
}
if (!expanded) {
if (!plasmoid.expanded) {
switchToInitial();
}
}
......
......@@ -57,8 +57,8 @@ FocusScope {
Connections {
target: plasmoid
onExpandedChanged: {
if (!expanded) {
function onExpandedChanged() {
if (!plasmoid.expanded) {
listView.positionViewAtBeginning();
}
}
......
......@@ -137,12 +137,12 @@ PlasmaCore.ToolTipArea {
Connections {
target: plasmoid.action("configure")
onTriggered: plasmoid.expanded = false
function onTriggered() { plasmoid.expanded = false }
}
Connections {
target: plasmoid
onContextualActionsAboutToShow: root.hideToolTip()
function onContextualActionsAboutToShow() { root.hideToolTip() }
}
PlasmaCore.Dialog {
......
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