summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeloader/data
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-04-20 00:05:39 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-04-20 00:05:39 (GMT)
commit1b80a6bc28cb49b9f6e1a2132d929819924aa604 (patch)
treed0de1b7639a4b9259af5b97488e339f604f83e46 /tests/auto/declarative/qdeclarativeloader/data
parent18cbadd8edd233b843d04441a05788264da0a67b (diff)
downloadQt-1b80a6bc28cb49b9f6e1a2132d929819924aa604.zip
Qt-1b80a6bc28cb49b9f6e1a2132d929819924aa604.tar.gz
Qt-1b80a6bc28cb49b9f6e1a2132d929819924aa604.tar.bz2
Allow Loader sourceComponent to be set to undefeined.
Diffstat (limited to 'tests/auto/declarative/qdeclarativeloader/data')
-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 }
}