summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-09-09 05:14:21 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-09-09 05:14:21 (GMT)
commit6878a0b7c507d21366cacee0a09bafeb81726d82 (patch)
tree457c32d1ec3044efe99c5950bce1cca6db41e41a /examples
parent7731e5f7d33d3ec251299c7651e777d7e0054573 (diff)
downloadQt-6878a0b7c507d21366cacee0a09bafeb81726d82.zip
Qt-6878a0b7c507d21366cacee0a09bafeb81726d82.tar.gz
Qt-6878a0b7c507d21366cacee0a09bafeb81726d82.tar.bz2
Move ComponentInstance functionality into Loader
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/tutorials/contacts/2_Reuse/1b/BlueRect.qml12
-rw-r--r--examples/declarative/webview/newwindows.qml2
2 files changed, 7 insertions, 7 deletions
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/1b/BlueRect.qml b/examples/declarative/tutorials/contacts/2_Reuse/1b/BlueRect.qml
index ec115fe..7bcdf50 100644
--- a/examples/declarative/tutorials/contacts/2_Reuse/1b/BlueRect.qml
+++ b/examples/declarative/tutorials/contacts/2_Reuse/1b/BlueRect.qml
@@ -16,18 +16,18 @@ Rectangle {
}
}
]
- ComponentInstance {
- component: redRectangle
+ Loader {
+ sourceComponent: redRectangle
anchors.right: parent.right
anchors.top: parent.top
}
- ComponentInstance {
- component: redRectangle
+ Loader {
+ sourceComponent: redRectangle
anchors.left: parent.left
anchors.top: parent.top
}
- ComponentInstance {
- component: redRectangle
+ Loader {
+ sourceComponent: redRectangle
anchors.left: parent.left
anchors.bottom: parent.bottom
}
diff --git a/examples/declarative/webview/newwindows.qml b/examples/declarative/webview/newwindows.qml
index 9ff902e2..57cbf4e 100644
--- a/examples/declarative/webview/newwindows.qml
+++ b/examples/declarative/webview/newwindows.qml
@@ -24,5 +24,5 @@ Row {
}
]
width: 500
- ComponentInstance { component: WebViewPage }
+ Loader { sourceComponent: WebViewPage }
}