test the busy property in the scriptengine
This commit is contained in:
parent
44e8b52874
commit
9390decfb0
@ -45,6 +45,13 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
PlasmaComponents.Button {
|
||||||
|
text: "Busy"
|
||||||
|
checked: plasmoid.busy
|
||||||
|
onClicked: {
|
||||||
|
plasmoid.busy = !plasmoid.busy
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
print("Test Applet loaded")
|
print("Test Applet loaded")
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
|
|
||||||
import org.kde.plasma.core 0.1 as PlasmaCore
|
import org.kde.plasma.core 0.1 as PlasmaCore
|
||||||
|
import org.kde.plasma.components 0.1 as PlasmaComponents
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
@ -94,6 +95,12 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
//Rectangle { color: "white"; opacity: 0.2; anchors.fill: parent; }
|
//Rectangle { color: "white"; opacity: 0.2; anchors.fill: parent; }
|
||||||
}
|
}
|
||||||
|
PlasmaComponents.BusyIndicator {
|
||||||
|
z: 1000
|
||||||
|
visible: applet[0].busy
|
||||||
|
running: visible
|
||||||
|
anchors.centerIn: parent
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user