summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-11-19 00:55:22 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-11-19 00:56:16 (GMT)
commit519264c692f77f6da2fb8a9ac2ddb1d70b39cc90 (patch)
tree6d292c1d06a57b3ff1c5de57f9dd4bd6708efe2a
parent0ced71e4dddc12240b22fd5786ed41a529e49c47 (diff)
downloadQt-519264c692f77f6da2fb8a9ac2ddb1d70b39cc90.zip
Qt-519264c692f77f6da2fb8a9ac2ddb1d70b39cc90.tar.gz
Qt-519264c692f77f6da2fb8a9ac2ddb1d70b39cc90.tar.bz2
Doc: clarify Flickable children vs. contentItem children.
-rw-r--r--src/declarative/graphicsitems/qdeclarativeflickable.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeflickable.cpp b/src/declarative/graphicsitems/qdeclarativeflickable.cpp
index 3a3189c..1870647 100644
--- a/src/declarative/graphicsitems/qdeclarativeflickable.cpp
+++ b/src/declarative/graphicsitems/qdeclarativeflickable.cpp
@@ -386,6 +386,13 @@ void QDeclarativeFlickablePrivate::updateBeginningEnd()
\snippet doc/src/snippets/declarative/flickable.qml document
\clearfloat
+
+ Items declared as children of a Flickable are automatically parented to the
+ Flickable's \l contentItem. This should be taken into account when
+ operating on the children of the Flickable; it is usually the children of
+ \c contentItem that are relevant. For example, the bound of Items added
+ to the Flickable will be available by \c contentItem.childrenRect
+
\section1 Limitations
\note Due to an implementation detail, items placed inside a Flickable cannot anchor to it by