summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxcomponentinstance.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-05-01 02:47:44 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-05-01 02:47:44 (GMT)
commitf5b007243af66abc320ee9022170c84e1a3f6da6 (patch)
tree3cace2397a1aefe03ee3a567768f2a523e21fa86 /src/declarative/fx/qfxcomponentinstance.cpp
parent27e71ee910f415e711961873c0985eaf9b2950f1 (diff)
downloadQt-f5b007243af66abc320ee9022170c84e1a3f6da6.zip
Qt-f5b007243af66abc320ee9022170c84e1a3f6da6.tar.gz
Qt-f5b007243af66abc320ee9022170c84e1a3f6da6.tar.bz2
More format changes.
Diffstat (limited to 'src/declarative/fx/qfxcomponentinstance.cpp')
-rw-r--r--src/declarative/fx/qfxcomponentinstance.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/declarative/fx/qfxcomponentinstance.cpp b/src/declarative/fx/qfxcomponentinstance.cpp
index 5343f7d..5fb5466 100644
--- a/src/declarative/fx/qfxcomponentinstance.cpp
+++ b/src/declarative/fx/qfxcomponentinstance.cpp
@@ -61,13 +61,14 @@ QML_DEFINE_TYPE(QFxComponentInstance,ComponentInstance);
\brief The ComponentInstance element allows you to instantiate a \l{qml-component.html} {Component}.
\code
- <Item>
- <Component id="RedSquare">
- <Rect color="red" width="10" height="10"/>
- </Component>
+ Item {
+ Component {
+ id: RedSquare
+ Rect { color: "red"; width: 10; height: 10 }
+ }
- <ComponentInstance component="{RedSquare}"/>
- </Item>
+ ComponentInstance { component: RedSquare }
+ }
\endcode
*/
QFxComponentInstance::QFxComponentInstance(QFxItem *parent)