summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/repeater.qml
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-09-21 23:45:55 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-09-21 23:45:55 (GMT)
commitab3634173ba5d5ed084710a32508ea728378d038 (patch)
treebcbe168df620c3d9e7be4d5187042654d06427ba /doc/src/snippets/declarative/repeater.qml
parent1ee038d05089aea25d3602f3e65592d7dd07b76f (diff)
downloadQt-ab3634173ba5d5ed084710a32508ea728378d038.zip
Qt-ab3634173ba5d5ed084710a32508ea728378d038.tar.gz
Qt-ab3634173ba5d5ed084710a32508ea728378d038.tar.bz2
Repeater doc update.
Diffstat (limited to 'doc/src/snippets/declarative/repeater.qml')
-rw-r--r--doc/src/snippets/declarative/repeater.qml16
1 files changed, 9 insertions, 7 deletions
diff --git a/doc/src/snippets/declarative/repeater.qml b/doc/src/snippets/declarative/repeater.qml
index 309fead..f8ac856 100644
--- a/doc/src/snippets/declarative/repeater.qml
+++ b/doc/src/snippets/declarative/repeater.qml
@@ -1,14 +1,16 @@
import Qt 4.6
+Rectangle {
+ width: 220; height: 20; color: "white"
+
//! [0]
-Rectangle { width: 220; height: 20; color: "white"
- Component { id: Dot
- Rectangle { width: 20; height: 20; radius: 10; color: "green" }
- }
- HorizontalLayout {
+ Row {
Rectangle { width: 10; height: 20; color: "red" }
- Repeater { component: Dot; dataSource: 10 }
+ Repeater {
+ model: 10
+ Rectangle { width: 20; height: 20; radius: 10; color: "green" }
+ }
Rectangle { width: 10; height: 20; color: "blue" }
}
-}
//! [0]
+}