Commit 4c767ab7 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Address Connections syntax warnings on the systray plasmoid

Test Plan: Using it

Reviewers: #plasma, ngraham

Reviewed By: ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D29150
parent 0dcc58a1
......@@ -44,7 +44,9 @@ PlasmaCore.ToolTipArea {
Connections {
target: plasmoid
onContextualActionsAboutToShow: appletRoot.hideToolTip()
function onContextualActionsAboutToShow() {
appletRoot.hideToolTip()
}
}
Layout.minimumWidth: {
......
......@@ -70,9 +70,11 @@ AbstractItem {
Connections {
target: applet
onActivated: plasmoidContainer.activated()
function onActivated() {
plasmoidContainer.activated()
}
onExpandedChanged: {
function onExpandedChanged(expanded) {
if (expanded) {
var oldApplet = root.activeApplet;
root.activeApplet = applet;
......@@ -91,7 +93,7 @@ AbstractItem {
}
}
onFullRepresentationItemChanged: {
function onFullRepresentationItemChanged(fullRepresentationItem) {
preloadFullRepresentationItem(fullRepresentationItem)
}
}
......
......@@ -78,8 +78,8 @@ MouseArea {
Connections {
target: plasmoid
onUserConfiguringChanged: {
if (plasmoid.userConfiguring) {
function onUserConfiguringChanged(userConfiguring) {
if (userConfiguring) {
dialog.visible = false
}
}
......@@ -88,7 +88,9 @@ MouseArea {
Connections {
target: plasmoid.configuration
onExtraItemsChanged: plasmoid.nativeInterface.allowedPlasmoids = plasmoid.configuration.extraItems
function onExtraItemsChanged(extraItems) {
plasmoid.nativeInterface.allowedPlasmoids = extraItems
}
}
CurrentItemHighLight {
......
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