summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativegridview.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-05-05 06:03:16 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-05-05 06:03:16 (GMT)
commit80c04413ba2c1a20a5d93d69df92ba908c26d81d (patch)
tree971bac7ca8480b6be8f01a9dd870bd8f0d45ab06 /src/declarative/graphicsitems/qdeclarativegridview.cpp
parentf8af54e12bcb6e991315c53eca758c43653610fa (diff)
downloadQt-80c04413ba2c1a20a5d93d69df92ba908c26d81d.zip
Qt-80c04413ba2c1a20a5d93d69df92ba908c26d81d.tar.gz
Qt-80c04413ba2c1a20a5d93d69df92ba908c26d81d.tar.bz2
Document delegate life cycle.
Task-number: QTBUG-10353
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativegridview.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativegridview.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativegridview.cpp b/src/declarative/graphicsitems/qdeclarativegridview.cpp
index f55c483..4c72482 100644
--- a/src/declarative/graphicsitems/qdeclarativegridview.cpp
+++ b/src/declarative/graphicsitems/qdeclarativegridview.cpp
@@ -908,6 +908,9 @@ void QDeclarativeGridViewPrivate::flick(AxisData &data, qreal minExtent, qreal m
In this case ListModel is a handy way for us to test our UI. In practice
the model would be implemented in C++, or perhaps via a SQL data source.
+ Delegates are instantiated as needed and may be destroyed at any time.
+ State should \e never be stored in a delegate.
+
\bold Note that views do not enable \e clip automatically. If the view
is not clipped by another item or the screen, it will be necessary
to set \e {clip: true} in order to have the out of view items clipped