diff options
author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2022-03-10 12:19:59 +0100 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2022-03-10 12:19:59 +0100 |
commit | e798058823d6b3b813807151b91ee7d4c9417c3e (patch) | |
tree | a77487803177ea40775343e87b1ede3e521f0194 /tests/auto/quick/qquickstates/data/noStateOsciallation.qml | |
parent | 56993597c05545922bbb2ef7aed49e7e34ac06b9 (diff) | |
parent | 473663128eaaf1c92ada255ac6ef1101c8bda790 (diff) |
Merge remote-tracking branch 'origin/dev' into iosstyle
Change-Id: If094d48e544c4ea14c1e4c21d99322b71b580dde
Diffstat (limited to 'tests/auto/quick/qquickstates/data/noStateOsciallation.qml')
-rw-r--r-- | tests/auto/quick/qquickstates/data/noStateOsciallation.qml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickstates/data/noStateOsciallation.qml b/tests/auto/quick/qquickstates/data/noStateOsciallation.qml new file mode 100644 index 0000000000..f0d7aeeb6d --- /dev/null +++ b/tests/auto/quick/qquickstates/data/noStateOsciallation.qml @@ -0,0 +1,22 @@ +import QtQuick 2.15 + +Item { + id: root + property int number: 2 + property int stateChangeCounter: 0 + + Item { + id: item + onStateChanged: ++stateChangeCounter + states: [ + State { + name: "n1" + when: root.number === 1 + }, + State { + name: "n2" + when: root.number === 2 + } + ] + } +} |