summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlstates/data/legalTempState.qml
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-02-11 15:45:07 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-02-11 15:45:07 (GMT)
commitb02508a00d82dd2a4bd097af22861dcdef14adea (patch)
tree96e26fcf6ce4bb3930ca0425107a43a5f829fa68 /tests/auto/declarative/qmlstates/data/legalTempState.qml
parent163b383404f25f5e951959a8d5056124567ef183 (diff)
parent1c2d8e41377644df27ac0ef5cdeeecb79598661c (diff)
downloadQt-b02508a00d82dd2a4bd097af22861dcdef14adea.zip
Qt-b02508a00d82dd2a4bd097af22861dcdef14adea.tar.gz
Qt-b02508a00d82dd2a4bd097af22861dcdef14adea.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qml into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-qml: (3398 commits) Fixed compile of these recently renamed tests. Update QmlChanges.txt Adds qml prefix to all declarative autotests Removed "running: true" for animations used as propertyvaluesource Animations are running by default when used as property source value Fix QmlEngine offlineStoragePath test. Fix Image test on Windows. Fix FontLoader test on Windows. Test should use ceil() not floor() since ceil() is used for calculating Fix BorderImage tests on Windows. Test should use ceil() not floor() since ceil() is used for calculating Clean up Must pass app arguments onto qExec() or else test system cannot QML Object toString should use 64-bit address on 64-bit platforms Improve stability of tst_qmlecmascript::dynamicDestruction Fix tst_qmlecmascript::callQtInvokables Fixed qmldebug* tests crashing. Fix declarative/qmldom::loadDynamicProperty autotest Fix declarative/animatedimage autotest Removed the tests/auto/declarative/visual(&examples) from .pro ...
Diffstat (limited to 'tests/auto/declarative/qmlstates/data/legalTempState.qml')
-rw-r--r--tests/auto/declarative/qmlstates/data/legalTempState.qml23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlstates/data/legalTempState.qml b/tests/auto/declarative/qmlstates/data/legalTempState.qml
new file mode 100644
index 0000000..54c97b9
--- /dev/null
+++ b/tests/auto/declarative/qmlstates/data/legalTempState.qml
@@ -0,0 +1,23 @@
+import Qt 4.6
+
+Rectangle {
+ id: card
+ width: 100; height: 100
+
+ states: [
+ State {
+ name: "placed"
+ onCompleted: card.state = "idle"
+ StateChangeScript { script: console.log("entering placed") }
+ },
+ State {
+ name: "idle"
+ StateChangeScript { script: console.log("entering idle") }
+ }
+ ]
+
+ MouseRegion {
+ anchors.fill: parent
+ onClicked: card.state = "placed"
+ }
+}