diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-05-05 01:01:56 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-05-05 01:01:56 (GMT) |
commit | c376633cba5c79ed1d842d9c6b7b68e31c646959 (patch) | |
tree | 63bbc6fa3dc619e7a5e531cee8248495b153288b | |
parent | 22959526d81bfd2195d389eddc88c626350b6925 (diff) | |
download | Qt-c376633cba5c79ed1d842d9c6b7b68e31c646959.zip Qt-c376633cba5c79ed1d842d9c6b7b68e31c646959.tar.gz Qt-c376633cba5c79ed1d842d9c6b7b68e31c646959.tar.bz2 |
Add not-yet-working Content example.
-rw-r--r-- | doc/src/snippets/declarative/GroupBox.qml | 11 | ||||
-rw-r--r-- | doc/src/snippets/declarative/content.qml | 6 |
2 files changed, 17 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/GroupBox.qml b/doc/src/snippets/declarative/GroupBox.qml new file mode 100644 index 0000000..a8ff5be --- /dev/null +++ b/doc/src/snippets/declarative/GroupBox.qml @@ -0,0 +1,11 @@ +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 {} + } + } +} diff --git a/doc/src/snippets/declarative/content.qml b/doc/src/snippets/declarative/content.qml new file mode 100644 index 0000000..be04c6e --- /dev/null +++ b/doc/src/snippets/declarative/content.qml @@ -0,0 +1,6 @@ +GroupBox { + content: [ + Text { text: "First Item" } + Text { text: "Second Item" } + ] +} |