diff options
author | Bea Lam <bea.lam@nokia.com> | 2012-08-09 15:09:16 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-09 07:58:06 +0200 |
commit | dd871ed1222f5d1a62e65bbc6012bf1a116a5d2a (patch) | |
tree | f28ba0d637ff5476b921e693e28669e665fcf898 /src | |
parent | aeb4a38ebcf9325423ef0259e70ee8bb11a5a30c (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.qdoc | 13 |
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 |