aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2021-09-02 12:54:14 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-09-02 17:38:06 +0000
commit5ecd2a3bd5f75f498d9c5f87d57da6f2a07e41f6 (patch)
tree773666429dd57d4bfc6f7127b04eab148377a700 /src
parent5159596f8b587fdd2d919a9fd4fabd91a2f5f18c (diff)
Doc: try to make "on" syntax more discoverable
Currently it's difficult for a user looking at the "on" syntax to find anything online by searching for "on syntax qml". The information is there, but it's not easily discoverable, as there's no way a user will know to search for "Property Modifier Objects" or "Property Modifier Types". Change-Id: I453e8626ac5fe6656cd8e5adbcfc0f80faf4be9f Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit d3623d04ecceabff1a4a179079730102a804cae7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/qml/doc/src/cppintegration/definetypes.qdoc2
-rw-r--r--src/qml/doc/src/qmllanguageref/syntax/objectattributes.qdoc2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/doc/src/cppintegration/definetypes.qdoc b/src/qml/doc/src/cppintegration/definetypes.qdoc
index 969bf4f7c0..d5c1d3e0c9 100644
--- a/src/qml/doc/src/cppintegration/definetypes.qdoc
+++ b/src/qml/doc/src/cppintegration/definetypes.qdoc
@@ -619,6 +619,8 @@ Item {
}
\endqml
+This is commonly referred to as "on" syntax.
+
Clients can register their own property value source types, but currently not
property value write interceptors.
diff --git a/src/qml/doc/src/qmllanguageref/syntax/objectattributes.qdoc b/src/qml/doc/src/qmllanguageref/syntax/objectattributes.qdoc
index 787e7b920b..6ddd9f30d0 100644
--- a/src/qml/doc/src/qmllanguageref/syntax/objectattributes.qdoc
+++ b/src/qml/doc/src/qmllanguageref/syntax/objectattributes.qdoc
@@ -730,6 +730,8 @@ with a particular property is as follows:
}
\endcode
+This is commonly referred to as "on" syntax.
+
It is important to note that the above syntax is in fact an
\l{qtqml-syntax-basics.html#object-declarations}{object declaration} which
will instantiate an object which acts on a pre-existing property.