aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativestates/data
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2011-09-08 15:22:22 +1000
committerQt by Nokia <qt-info@nokia.com>2011-09-09 01:07:55 +0200
commitde868c71b7ec5f463ed9b1a142f3b805d1c3d627 (patch)
treea3051237c9f3c0d019b6df94266d3bb5346bfcb1 /tests/auto/declarative/qdeclarativestates/data
parenteb567b03b5e29bd0cd52c87cc1a59cc96ecfd7e8 (diff)
Only fast-foward states when there is a transition.
Fast-forwarding is only required when we are animating a state change. Task-number: QTBUG-16662 Change-Id: I20e1a056cb3268b92b606be34809bcd0e2bfb898 Reviewed-on: http://codereview.qt-project.org/4390 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
Diffstat (limited to 'tests/auto/declarative/qdeclarativestates/data')
-rw-r--r--tests/auto/declarative/qdeclarativestates/data/avoidFastForward.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativestates/data/avoidFastForward.qml b/tests/auto/declarative/qdeclarativestates/data/avoidFastForward.qml
new file mode 100644
index 0000000000..519befc31e
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativestates/data/avoidFastForward.qml
@@ -0,0 +1,17 @@
+import QtQuick 2.0
+
+Rectangle {
+ id: rect
+ width: 200
+ height: 200
+
+ property int updateCount: 0
+ onColorChanged: updateCount++
+
+ property color aColor: "green"
+
+ states: State {
+ name: "a"
+ PropertyChanges { target: rect; color: aColor }
+ }
+}