summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeloader/data/SetSourceComponent.qml
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-04-21 09:50:16 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-04-21 09:50:16 (GMT)
commit5c5baba60098e6a502ebd298204ab4e3b5193736 (patch)
tree7cba7891a68f96ce2e7227c01ae8ab89fb06f7f3 /tests/auto/declarative/qdeclarativeloader/data/SetSourceComponent.qml
parentfe33a6fd873ca874e63038b1e055c5bc506f7fff (diff)
parentedc74eecf2967b295c7b881977527474be8e1c80 (diff)
downloadQt-5c5baba60098e6a502ebd298204ab4e3b5193736.zip
Qt-5c5baba60098e6a502ebd298204ab4e3b5193736.tar.gz
Qt-5c5baba60098e6a502ebd298204ab4e3b5193736.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'tests/auto/declarative/qdeclarativeloader/data/SetSourceComponent.qml')
-rw-r--r--tests/auto/declarative/qdeclarativeloader/data/SetSourceComponent.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativeloader/data/SetSourceComponent.qml b/tests/auto/declarative/qdeclarativeloader/data/SetSourceComponent.qml
index 1db56c4..f600e85 100644
--- a/tests/auto/declarative/qdeclarativeloader/data/SetSourceComponent.qml
+++ b/tests/auto/declarative/qdeclarativeloader/data/SetSourceComponent.qml
@@ -1,6 +1,9 @@
import Qt 4.6
Item {
+ function clear() {
+ loader.sourceComponent = undefined
+ }
Component { id: comp; Rectangle { width: 100; height: 50 } }
- Loader { sourceComponent: comp }
+ Loader { id: loader; sourceComponent: comp }
}