diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-05-01 05:39:07 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-05-01 05:39:07 (GMT) |
commit | c1830b72bc64cca5d5110ce084b580022ac8d3a0 (patch) | |
tree | dc2acd520574da78a92ac30e2414cd7201f6b70d /src/declarative/fx/qfxcontentwrapper.cpp | |
parent | 2d167da27db0de589a6d72b5cfb97f1faa273bb7 (diff) | |
download | Qt-c1830b72bc64cca5d5110ce084b580022ac8d3a0.zip Qt-c1830b72bc64cca5d5110ce084b580022ac8d3a0.tar.gz Qt-c1830b72bc64cca5d5110ce084b580022ac8d3a0.tar.bz2 |
doc
Diffstat (limited to 'src/declarative/fx/qfxcontentwrapper.cpp')
-rw-r--r-- | src/declarative/fx/qfxcontentwrapper.cpp | 41 |
1 files changed, 25 insertions, 16 deletions
diff --git a/src/declarative/fx/qfxcontentwrapper.cpp b/src/declarative/fx/qfxcontentwrapper.cpp index a155d2b..2b95ff6 100644 --- a/src/declarative/fx/qfxcontentwrapper.cpp +++ b/src/declarative/fx/qfxcontentwrapper.cpp @@ -108,22 +108,31 @@ QML_DEFINE_TYPE(QFxContent,Content); specified by Content. Example: - \code - <!--GroupBox component definition--> - <Rect width="{parent.width}" color="white" pen.width="2" pen.color="#adaeb0" radius="10" clip="false" height="{contents.height}"> - <VerticalLayout id="layout" width="{parent.width}"> - <Content/> - </VerticalLayout> - </Rect> - - <!--component use--> - <GroupBox> - <content> - <Text text="First Item"/> - ... - </content> - </GroupBox> - \endcode + \qml +// GroupBox component definition +Rect { + width: parent.width + color: "white" + pen.width: 2 + pen.color: "#adaeb0" + radius: 10 + clip: false + height: contents.height + VerticalLayout { + id: layout + width: parent.width + Content { } // content property will go here + } +} + +// component use +GroupBox { + content: Text { + text: "First Item" + ... + } +} + \endqml */ QT_END_NAMESPACE |