From 9390decfb05e27d07769b03e6ccda27c3b047235 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 12 Feb 2013 14:07:13 +0100 Subject: [PATCH] test the busy property in the scriptengine --- shell/testapplet/contents/ui/main.qml | 7 +++++++ shell/testcontainment/contents/ui/main.qml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/shell/testapplet/contents/ui/main.qml b/shell/testapplet/contents/ui/main.qml index 9e3c0a3a6..811632899 100644 --- a/shell/testapplet/contents/ui/main.qml +++ b/shell/testapplet/contents/ui/main.qml @@ -45,6 +45,13 @@ Rectangle { } } } + PlasmaComponents.Button { + text: "Busy" + checked: plasmoid.busy + onClicked: { + plasmoid.busy = !plasmoid.busy + } + } } Component.onCompleted: { print("Test Applet loaded") diff --git a/shell/testcontainment/contents/ui/main.qml b/shell/testcontainment/contents/ui/main.qml index 05ee845bc..349669a89 100644 --- a/shell/testcontainment/contents/ui/main.qml +++ b/shell/testcontainment/contents/ui/main.qml @@ -19,6 +19,7 @@ import QtQuick 2.0 import org.kde.plasma.core 0.1 as PlasmaCore +import org.kde.plasma.components 0.1 as PlasmaComponents Rectangle { id: root @@ -94,6 +95,12 @@ Rectangle { } //Rectangle { color: "white"; opacity: 0.2; anchors.fill: parent; } } + PlasmaComponents.BusyIndicator { + z: 1000 + visible: applet[0].busy + running: visible + anchors.centerIn: parent + } } }