diff --git a/tests/manual/testbench/content/Components.qml b/tests/manual/testbench/content/Components.qml index ef80f0d715bcb4f2efc33b88729acfa3bd33d71c..73e154b7d9975a15da1394fd34e0e13feb53f49a 100644 --- a/tests/manual/testbench/content/Components.qml +++ b/tests/manual/testbench/content/Components.qml @@ -69,9 +69,10 @@ Item { } property Component progressbar: ProgressBar { + property bool ___isRunning: true Timer { id: timer - running: true + running: ___isRunning repeat: true interval: 25 onTriggered: { @@ -80,6 +81,7 @@ Item { } } } + property var model: ListModel{ id: testDataModel Component.onCompleted: { diff --git a/tests/manual/testbench/main.qml b/tests/manual/testbench/main.qml index c6b1cdf08e20bb4fa931eec735fef281a481d56b..ef8e695842726532d301ee5424e3bdbdf5bc07bc 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;