Changeset View
Changeset View
Standalone View
Standalone View
tests/components/busyindicator3.qml
- This file was added.
1 | import QtQuick 2.0 | ||||
---|---|---|---|---|---|
2 | import org.kde.plasma.components 3.0 as PlasmaComponents | ||||
3 | | ||||
4 | Rectangle { | ||||
5 | width: 600 | ||||
6 | height: 300 | ||||
7 | color: "white" | ||||
8 | | ||||
9 | Column { | ||||
10 | anchors.fill: parent | ||||
11 | anchors.margins: 20 | ||||
12 | spacing: 20 | ||||
13 | | ||||
14 | PlasmaComponents.Label { | ||||
15 | width: parent.width | ||||
16 | wrapMode: Text.WordWrap | ||||
17 | text: "When checking and unchecking the checkbox, " + | ||||
18 | "the busy indicator should resume where it has " + | ||||
19 | "paused and not glitch around" | ||||
20 | } | ||||
21 | | ||||
22 | Row { | ||||
23 | spacing: 20 | ||||
24 | | ||||
25 | PlasmaComponents.BusyIndicator { | ||||
26 | running: runningButton.checked | ||||
27 | } | ||||
28 | | ||||
29 | PlasmaComponents.CheckBox { | ||||
30 | id: runningButton | ||||
31 | text: "Running" | ||||
32 | } | ||||
33 | } | ||||
34 | | ||||
35 | } | ||||
36 | | ||||
37 | } |