summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-05-05 01:01:56 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-05-05 01:01:56 (GMT)
commitc376633cba5c79ed1d842d9c6b7b68e31c646959 (patch)
tree63bbc6fa3dc619e7a5e531cee8248495b153288b
parent22959526d81bfd2195d389eddc88c626350b6925 (diff)
downloadQt-c376633cba5c79ed1d842d9c6b7b68e31c646959.zip
Qt-c376633cba5c79ed1d842d9c6b7b68e31c646959.tar.gz
Qt-c376633cba5c79ed1d842d9c6b7b68e31c646959.tar.bz2
Add not-yet-working Content example.
-rw-r--r--doc/src/snippets/declarative/GroupBox.qml11
-rw-r--r--doc/src/snippets/declarative/content.qml6
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" }
+ ]
+}