diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-04-09 04:18:39 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-04-09 06:02:29 (GMT) |
commit | 79e4a9e9f47cc218c13cabba43c0f806d72cc84a (patch) | |
tree | 63c4c516be402adfe0ad3d9a75ad7c0f95fea245 | |
parent | ec389436a74a7b619924bd47942e92203b1fb213 (diff) | |
download | Qt-79e4a9e9f47cc218c13cabba43c0f806d72cc84a.zip Qt-79e4a9e9f47cc218c13cabba43c0f806d72cc84a.tar.gz Qt-79e4a9e9f47cc218c13cabba43c0f806d72cc84a.tar.bz2 |
Fix example
Task-number: QTBUG-8514
-rw-r--r-- | doc/src/declarative/qdeclarativemodels.qdoc | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/doc/src/declarative/qdeclarativemodels.qdoc b/doc/src/declarative/qdeclarativemodels.qdoc index e80824d..5fd2799 100644 --- a/doc/src/declarative/qdeclarativemodels.qdoc +++ b/doc/src/declarative/qdeclarativemodels.qdoc @@ -309,13 +309,21 @@ There are no data roles. The following example creates a ListView with five elements: \code -Component { - id: itemDelegate - Text { text: "I am item number: " + index } -} -ListView { - model: 5 - delegate: itemDelegate +Item { + width: 200 + height: 250 + + Component { + id: itemDelegate + Text { text: "I am item number: " + index } + } + + ListView { + anchors.fill: parent + model: 5 + delegate: itemDelegate + } + } \endcode |