Commit 9463bdce authored by Daan De Meyer's avatar Daan De Meyer
Browse files

Fix Connections deprecation warnings

parent 86329ca1
......@@ -441,7 +441,7 @@ Item {
Connections {
target: plasmoid
onExpandedChanged: {
function onExpandedChanged() {
if(menuItemsChanged()) {
createButtons();
}
......
......@@ -156,14 +156,14 @@ MouseArea {
Connections {
target: plasmoid.configuration
onShowWindowIconsChanged: {
function onShowWindowIconsChanged() {
// Causes the model to reset; Component.onCompleted in the
// window delegate now gets a chance to create the icon item,
// which it otherwise will not do.
pagerModel.refresh();
}
onDisplayedTextChanged: {
function onDisplayedTextChanged() {
// Causes the model to reset; Component.onCompleted in the
// desktop delegate now gets a chance to create the label item,
// which it otherwise will not do.
......
......@@ -49,7 +49,7 @@ Item {
Connections {
target: tasks
onDragSourceChanged: {
function onDragSourceChanged() {
if (!dragSource) {
ignoredItem = null;
ignoreItemTimer.stop();
......
......@@ -284,7 +284,9 @@ MouseArea {
Connections {
target: pulseAudio.item
ignoreUnknownSignals: true // Plasma-PA might not be available
onStreamsChanged: task.updateAudioStreams({delay: true})
function onStreamsChanged() {
task.updateAudioStreams({delay: true})
}
}
Component {
......
......@@ -196,7 +196,7 @@ MouseArea {
Connections {
target: tasksModel
onActiveTaskChanged: {
function onActiveTaskChanged() {
if (!plasmoid.configuration.groupPopups) {
return;
}
......@@ -330,7 +330,7 @@ MouseArea {
Connections {
target: plasmoid
onLocationChanged: {
function onLocationChanged() {
// This is on a timer because the panel may not have
// settled into position yet when the location prop-
// erty updates.
......@@ -341,9 +341,15 @@ MouseArea {
Connections {
target: plasmoid.configuration
onLaunchersChanged: tasksModel.launcherList = plasmoid.configuration.launchers
onGroupingAppIdBlacklistChanged: tasksModel.groupingAppIdBlacklist = plasmoid.configuration.groupingAppIdBlacklist;
onGroupingLauncherUrlBlacklistChanged: tasksModel.groupingLauncherUrlBlacklist = plasmoid.configuration.groupingLauncherUrlBlacklist;
function onLaunchersChanged() {
tasksModel.launcherList = plasmoid.configuration.launchers
}
function onGroupingAppIdBlacklistChanged() {
tasksModel.groupingAppIdBlacklist = plasmoid.configuration.groupingAppIdBlacklist;
}
function onGroupingLauncherUrlBlacklistChanged() {
tasksModel.groupingLauncherUrlBlacklist = plasmoid.configuration.groupingLauncherUrlBlacklist;
}
}
TaskManagerApplet.DragHelper {
......
......@@ -37,7 +37,7 @@ Item {
Connections {
target: ActivitySwitcher.Backend
onShouldShowSwitcherChanged: {
function onShouldShowSwitcherChanged() {
if (ActivitySwitcher.Backend.shouldShowSwitcher) {
if (sidePanelStack.state != "activityManager") {
root.toggleActivityManager();
......
......@@ -88,7 +88,7 @@ Item {
Connections {
target: plasmoid
onUserConfiguringChanged: {
function onUserConfiguringChanged() {
if (plasmoid.userConfiguring) {
plasmoid.editMode = true;
toolTipArea.hideToolTip();
......
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