summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-01-29 03:01:49 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-01-29 03:01:49 (GMT)
commit5cf8677758e6fbfa5bf360c73519c14630db808c (patch)
treeb92c5b97561ef875c08397bb8b4b925007f557a6 /doc/src
parentb91871a108638a5a136ac2a4310f5a3743320f72 (diff)
parent430f3ba46d3db10f7b4534f74e65d2ca13b23747 (diff)
downloadQt-5cf8677758e6fbfa5bf360c73519c14630db808c.zip
Qt-5cf8677758e6fbfa5bf360c73519c14630db808c.tar.gz
Qt-5cf8677758e6fbfa5bf360c73519c14630db808c.tar.bz2
Merge branch 'kinetic-declarativeui' of scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/declarative/qmlmodels.qdoc7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/src/declarative/qmlmodels.qdoc b/doc/src/declarative/qmlmodels.qdoc
index 2dc24fe..322f225 100644
--- a/doc/src/declarative/qmlmodels.qdoc
+++ b/doc/src/declarative/qmlmodels.qdoc
@@ -58,6 +58,13 @@ property in the delegate, the roles are usually accessed unqualified.
A special \e index role containing the index of the item in the model
is also available.
+\e Note: the index role will be set to -1 if the item is removed from
+the model. If you bind to the index role, be sure that the logic
+accounts for the possibility of index being -1, i.e. that the item
+is no longer valid. Usually the item will shortly be destroyed, but
+it is possible to delay delegate destruction in some views via a delayRemove
+attached property.
+
Models that do not have named roles will have the data provided via
the \e modelData role. The \e modelData role is also provided for
Models that have only one role. In this case the \e modelData role