test the busy property in the scriptengine

This commit is contained in:
Marco Martin 2013-02-12 14:07:13 +01:00
parent 44e8b52874
commit 9390decfb0
2 changed files with 14 additions and 0 deletions

View File

@ -45,6 +45,13 @@ Rectangle {
}
}
}
PlasmaComponents.Button {
text: "Busy"
checked: plasmoid.busy
onClicked: {
plasmoid.busy = !plasmoid.busy
}
}
}
Component.onCompleted: {
print("Test Applet loaded")

View File

@ -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
}
}
}