summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-09-22 06:48:17 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-09-22 06:48:17 (GMT)
commit83fa27d3fc692e06e10cb0dd57b8f59b38d24637 (patch)
treee31c07fed44c59bd83ef576859fa31ecb8908804 /doc/src/snippets
parent3846e7c9c602b3dcc06516aaee582aedf9c0f436 (diff)
parentcf82572d50470a4d48d1c564b55ad79bb205b228 (diff)
downloadQt-83fa27d3fc692e06e10cb0dd57b8f59b38d24637.zip
Qt-83fa27d3fc692e06e10cb0dd57b8f59b38d24637.tar.gz
Qt-83fa27d3fc692e06e10cb0dd57b8f59b38d24637.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'doc/src/snippets')
-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]
+}