diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-05-05 05:27:57 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-05-05 05:27:57 (GMT) |
commit | 066f18d1830c5820041c3b267db404be8bc68a32 (patch) | |
tree | ffc588a4e4a5fc8e97f1726761d2e4ea447ef302 /doc | |
parent | c376633cba5c79ed1d842d9c6b7b68e31c646959 (diff) | |
download | Qt-066f18d1830c5820041c3b267db404be8bc68a32.zip Qt-066f18d1830c5820041c3b267db404be8bc68a32.tar.gz Qt-066f18d1830c5820041c3b267db404be8bc68a32.tar.bz2 |
Content/ContentWrapper documentation.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/declarative/pics/content.png | bin | 0 -> 1978 bytes | |||
-rw-r--r-- | doc/src/snippets/declarative/GroupBox.qml | 18 | ||||
-rw-r--r-- | doc/src/snippets/declarative/content.qml | 7 |
3 files changed, 14 insertions, 11 deletions
diff --git a/doc/src/declarative/pics/content.png b/doc/src/declarative/pics/content.png Binary files differnew file mode 100644 index 0000000..47a98ac --- /dev/null +++ b/doc/src/declarative/pics/content.png diff --git a/doc/src/snippets/declarative/GroupBox.qml b/doc/src/snippets/declarative/GroupBox.qml index a8ff5be..fd8d60b 100644 --- a/doc/src/snippets/declarative/GroupBox.qml +++ b/doc/src/snippets/declarative/GroupBox.qml @@ -1,11 +1,13 @@ ContentWrapper { - id: Container; width: parent.width - 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 {} + id: Container; width: parent.width; height: contents.height + children: [ + Rect { + width: parent.width; height: contents.height + color: "white"; pen.width: 2; pen.color: "#adaeb0"; radius: 10 + VerticalLayout { + id: layout; width: parent.width; margin: 5; spacing: 2 + Content { } + } } - } + ] } diff --git a/doc/src/snippets/declarative/content.qml b/doc/src/snippets/declarative/content.qml index be04c6e..6f9e0d8 100644 --- a/doc/src/snippets/declarative/content.qml +++ b/doc/src/snippets/declarative/content.qml @@ -1,6 +1,7 @@ -GroupBox { - content: [ +Rect { + width: 200; height: 100; color: "lightgray" + GroupBox { Text { text: "First Item" } Text { text: "Second Item" } - ] + } } |