From dd871ed1222f5d1a62e65bbc6012bf1a116a5d2a Mon Sep 17 00:00:00 2001 From: Bea Lam Date: Thu, 9 Aug 2012 15:09:16 +1000 Subject: [PATCH] Fix default property docs Item's default property is data. Change-Id: I60577f4cfbe954ab3311703915f43fecf4ed9bf2 Reviewed-by: Bea Lam --- src/qml/doc/src/cppintegration/definetypes.qdoc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/qml/doc/src/cppintegration/definetypes.qdoc b/src/qml/doc/src/cppintegration/definetypes.qdoc index 12da901..9a8be97 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 -- 2.7.4