diff options
Diffstat (limited to 'tests/manual/testbench/main.qml')
| -rw-r--r-- | tests/manual/testbench/main.qml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/manual/testbench/main.qml b/tests/manual/testbench/main.qml index c6b1cdf08..ef8e69584 100644 --- a/tests/manual/testbench/main.qml +++ b/tests/manual/testbench/main.qml @@ -53,6 +53,7 @@ ApplicationWindow { toolBar: ToolBar { width: parent.width RowLayout { + id: alwaysVisible anchors.left: parent.left anchors.leftMargin: 8 height: parent.height @@ -72,6 +73,16 @@ ApplicationWindow { onClicked: container.resetSize() } } + + CheckBox { + id: startStopAnim + anchors.left: alwaysVisible.right + anchors.verticalCenter: parent.verticalCenter + text: "Stop Animation" + checked: true + visible: false + onCheckedChanged: if (visible) loader.item.___isRunning = checked + } } statusBar: StatusBar { Row { @@ -133,12 +144,19 @@ ApplicationWindow { PropertyLayouts{ id: layouts } onStatusChanged: { + startStopAnim.visible = false + if (status == Loader.Ready) { propertyMap = [] var arr = new Array for (var prop in item) { + if (prop.toString() === "___isRunning") { + startStopAnim.visible = true + continue; + } + if (!prop.indexOf("on")) { // look only for properties if (prop.indexOf("Changed") !== (prop.length - 7)) continue; |
