summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-06-17 08:15:44 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-06-17 08:15:44 (GMT)
commit3b6d5bcc0ef8186608be8f27bfd4c816b0cc86bb (patch)
treed878ca7f64f4d78753ed3862945588f0d5c7f5ca /src/declarative
parent5cc37fcec3d75f6a8d0ce58ab724916795aff0aa (diff)
downloadQt-3b6d5bcc0ef8186608be8f27bfd4c816b0cc86bb.zip
Qt-3b6d5bcc0ef8186608be8f27bfd4c816b0cc86bb.tar.gz
Qt-3b6d5bcc0ef8186608be8f27bfd4c816b0cc86bb.tar.bz2
doc: improve Repeater model docs.
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/graphicsitems/qdeclarativerepeater.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativerepeater.cpp b/src/declarative/graphicsitems/qdeclarativerepeater.cpp
index 995e22a..87da904 100644
--- a/src/declarative/graphicsitems/qdeclarativerepeater.cpp
+++ b/src/declarative/graphicsitems/qdeclarativerepeater.cpp
@@ -83,17 +83,10 @@ QDeclarativeRepeaterPrivate::~QDeclarativeRepeaterPrivate()
\image repeater-simple.png
- The \l model of a Repeater can be specified as a model object, a number, a string list
- or an object list. If a model object is used, the
- \l delegate can access the model roles as named properties, just as for view elements like
- ListView and GridView.
+ The \l model of a Repeater can be any of the supported \l {qmlmodels}{Data Models}.
- The \l delegate can also access two additional properties:
-
- \list
- \o \c index - the index of the delegate's item
- \o \c modelData - the data element for the delegate, which is useful where the \l model is a string or object list
- \endlist
+ The index of a delegate is exposed as an accessible \c index property in the delegate.
+ Properties of the model are also available depending upon the type of \l {qmlmodels}{Data Model}.
Here is a Repeater that uses the \c index property inside the instantiated items: