diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2010-04-21 09:50:16 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2010-04-21 09:50:16 (GMT) |
commit | 5c5baba60098e6a502ebd298204ab4e3b5193736 (patch) | |
tree | 7cba7891a68f96ce2e7227c01ae8ab89fb06f7f3 /tests/auto/declarative/qdeclarativeloader/data/SetSourceComponent.qml | |
parent | fe33a6fd873ca874e63038b1e055c5bc506f7fff (diff) | |
parent | edc74eecf2967b295c7b881977527474be8e1c80 (diff) | |
download | Qt-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.qml | 5 |
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 } } |