aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2012-08-09 15:09:16 +1000
committerQt by Nokia <qt-info@nokia.com>2012-08-09 07:58:06 +0200
commitdd871ed1222f5d1a62e65bbc6012bf1a116a5d2a (patch)
treef28ba0d637ff5476b921e693e28669e665fcf898 /src
parentaeb4a38ebcf9325423ef0259e70ee8bb11a5a30c (diff)
Fix default property docs
Item's default property is data. Change-Id: I60577f4cfbe954ab3311703915f43fecf4ed9bf2 Reviewed-by: Bea Lam <bea.lam@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/qml/doc/src/cppintegration/definetypes.qdoc13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/qml/doc/src/cppintegration/definetypes.qdoc b/src/qml/doc/src/cppintegration/definetypes.qdoc
index 12da901e4c..9a8be977ca 100644
--- a/src/qml/doc/src/cppintegration/definetypes.qdoc
+++ b/src/qml/doc/src/cppintegration/definetypes.qdoc
@@ -618,14 +618,11 @@ MessageBoard {
}
\endqml
-(Incidentally, the \l Item::children property is its default property, which
-enables visual children to be conveniently declared for any \l {Item}-based
-type without explicitly assigning them to this property.)
-
-A default property is optional. A derived class inherits its base class's
-default property, but may override it in its own declaration. The default
-property can refer to a property declared in the class itself, or a property
-inherited from a base class.
+(Incidentally, the \l Item::data property is its default property. Any \l Item
+objects added to this \c data property are also added to the list of
+\l Item::children, so the use of the default property enables visual children
+to be declared for an item without explicitly assigning them to the
+\l{Item::}{children} property.)
\section2 Defining Visual Items with the QtQuick Module