aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2012-08-03 17:31:53 +1000
committerQt by Nokia <qt-info@nokia.com>2012-08-03 09:47:47 +0200
commit1c420305c393ea9e2f260f357955d96a258517ce (patch)
tree29c1142c1f066361ccb70137fe07656a77293257
parent545608ee97c85b3d7c0707e66ed14cf05c390490 (diff)
Add specifics of attached property syntax
Change-Id: Ia5f40e3d65ed8af2f9a14e3f44a1d41160ddf143 Reviewed-by: Bea Lam <bea.lam@nokia.com>
-rw-r--r--src/qml/doc/src/syntax/objectattributes.qdoc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qml/doc/src/syntax/objectattributes.qdoc b/src/qml/doc/src/syntax/objectattributes.qdoc
index ddfe70a425..894424cedd 100644
--- a/src/qml/doc/src/syntax/objectattributes.qdoc
+++ b/src/qml/doc/src/syntax/objectattributes.qdoc
@@ -841,6 +841,13 @@ access the properties and signals of the attaching type. These are accessed by
prefixing the properties and respective signal handlers with the name of the
attaching type.
+References to attached properties and handlers take the following syntax form:
+
+\code
+<AttachingType>.<propertyName>
+<AttachingType>.on<SignalName>
+\endcode
+
For example, the \l ListView type has an attached property
\l {ListView::isCurrentItem}{ListView.isCurrentItem} that is available to each delegate object in a
ListView. This can be used by each individual delegate object to determine