diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-09-22 00:42:52 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-09-22 00:42:52 (GMT) |
commit | 0598be4043f0f483f9d32040df57ffede322c038 (patch) | |
tree | 97c6dbab0e153ea2cb998c72f6e7853da9e3fdff /doc/src | |
parent | 5e5c9c8a7b3184f1c7874fec47d9e3c133cb7146 (diff) | |
parent | ab3634173ba5d5ed084710a32508ea728378d038 (diff) | |
download | Qt-0598be4043f0f483f9d32040df57ffede322c038.zip Qt-0598be4043f0f483f9d32040df57ffede322c038.tar.gz Qt-0598be4043f0f483f9d32040df57ffede322c038.tar.bz2 |
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/snippets/declarative/repeater.qml | 16 |
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] +} |