summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativebehaviors/data/delayedRegistration.qml
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2011-04-28 09:11:42 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2011-04-28 09:11:42 (GMT)
commite3aa9ad1a15505fb2ac8e51e4da4e219efc62e66 (patch)
tree184d13abc3c189b5d3f29b891909b426cac85132 /tests/auto/declarative/qdeclarativebehaviors/data/delayedRegistration.qml
parentd8b933084ecc6ded6689f71ea6ca2e5fd339faf3 (diff)
parent8e615d9b07f6146b5cb6b56c4cd2e32376a8b429 (diff)
downloadQt-e3aa9ad1a15505fb2ac8e51e4da4e219efc62e66.zip
Qt-e3aa9ad1a15505fb2ac8e51e4da4e219efc62e66.tar.gz
Qt-e3aa9ad1a15505fb2ac8e51e4da4e219efc62e66.tar.bz2
Merge branch '4.8-upstream'
Diffstat (limited to 'tests/auto/declarative/qdeclarativebehaviors/data/delayedRegistration.qml')
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/delayedRegistration.qml25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/delayedRegistration.qml b/tests/auto/declarative/qdeclarativebehaviors/data/delayedRegistration.qml
new file mode 100644
index 0000000..aa384c3
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/delayedRegistration.qml
@@ -0,0 +1,25 @@
+import QtQuick 1.0
+
+Rectangle {
+ id: container
+
+ width: 400; height: 400;
+ property Item myItem
+
+ function doCreate() {
+ myItem = myComponent.createObject(container)
+ myItem.x = 100
+ }
+
+ Component {
+ id: myComponent
+ Rectangle {
+ width: 100
+ height: 100
+ color: "green"
+ Behavior on x { NumberAnimation { duration: 500 } }
+ }
+ }
+
+ Component.onCompleted: doCreate()
+}