From 828edd8b40ac8c5f96a7f78e2072a25616b92a5d Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 5 Mar 2014 15:49:15 +0100 Subject: [PATCH] finish porting --- examples/applets/windowthumbnails/contents/ui/main.qml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/applets/windowthumbnails/contents/ui/main.qml b/examples/applets/windowthumbnails/contents/ui/main.qml index 179d16760..35ecb3b24 100644 --- a/examples/applets/windowthumbnails/contents/ui/main.qml +++ b/examples/applets/windowthumbnails/contents/ui/main.qml @@ -45,9 +45,10 @@ Item { } } - function performOperation(src, what) { - var service = tasksSource.serviceForSource(src); + function performOperation(id, what) { + var service = tasksSource.serviceForSource("tasks"); var operation = service.operationDescription(what); + operation["Id"] = id return service.startOperationCall(operation); } @@ -68,7 +69,7 @@ Item { PlasmaCore.WindowThumbnail { anchors.fill: parent - winId: model["Id"] + winId: model["WindowList"][0] } PlasmaComponents.Label { @@ -80,7 +81,7 @@ Item { anchors.right: parent.right } onClicked: { - performOperation(model["DataEngineSource"], "activate"); + performOperation(model["WindowList"][0], "activate"); } } }