summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-09-22 00:44:41 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-09-22 00:44:41 (GMT)
commitdbd57aaa5fdcae647b9def443631ce39af72401d (patch)
treeaf9c91f6bc07f8a4fac9a0bbbfd920557c2bc89b /doc/src
parentf75c1a94d2e4655d91e85da9b853f4716d07eb6b (diff)
downloadQt-dbd57aaa5fdcae647b9def443631ce39af72401d.zip
Qt-dbd57aaa5fdcae647b9def443631ce39af72401d.tar.gz
Qt-dbd57aaa5fdcae647b9def443631ce39af72401d.tar.bz2
Doc
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/snippets/declarative/repeater.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/src/snippets/declarative/repeater.qml b/doc/src/snippets/declarative/repeater.qml
index 309fead..cb7a069 100644
--- a/doc/src/snippets/declarative/repeater.qml
+++ b/doc/src/snippets/declarative/repeater.qml
@@ -1,13 +1,14 @@
import Qt 4.6
//! [0]
-Rectangle { width: 220; height: 20; color: "white"
+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 { delegate: Dot; model: 10 }
Rectangle { width: 10; height: 20; color: "blue" }
}
}