diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-09-09 05:14:21 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-09-09 05:14:21 (GMT) |
commit | 6878a0b7c507d21366cacee0a09bafeb81726d82 (patch) | |
tree | 457c32d1ec3044efe99c5950bce1cca6db41e41a /examples | |
parent | 7731e5f7d33d3ec251299c7651e777d7e0054573 (diff) | |
download | Qt-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.qml | 12 | ||||
-rw-r--r-- | examples/declarative/webview/newwindows.qml | 2 |
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 } } |