aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-11-03 19:25:37 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-11-04 15:16:33 +0000
commitd121e220f0e7f2be9e2a3d7af04fc36326484d0d (patch)
tree969308137795b3e3a1edbaec6c7a8d28e09bc3a5
parenta919ae95d98c6210675e24d6ca683bc60f51d884 (diff)
Type assertions: Mention the moniker as-casts
This should make it hopefully easier to find when searching for what as does in QML. Change-Id: I9b71e6bd88b43856855e324fe828a8117c079201 Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> (cherry picked from commit b395e5c5c3bbd0441c95bd6483576b0e3fee5880) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/qml/doc/src/javascript/hostenvironment.qdoc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/qml/doc/src/javascript/hostenvironment.qdoc b/src/qml/doc/src/javascript/hostenvironment.qdoc
index 6f1134a3e2..99aa4cd058 100644
--- a/src/qml/doc/src/javascript/hostenvironment.qdoc
+++ b/src/qml/doc/src/javascript/hostenvironment.qdoc
@@ -70,11 +70,10 @@ to use from C++. See
\l {qtqml-cppintegration-interactqmlfromcpp.html}{Interacting with QML Objects from C++}
for more information.
-Type assertions can also be used in order to cast an object to a different
-object type. If the object is actually of the given type, then the type
-assertion returns the same object. If not, it returns \c null. In the following
-snippet we assert that the \c parent object is a \c Rectangle before accessing
-a specific member of it.
+Type assertions (sometimes called \e as-casts) can also be used in order to cast an object to a
+different object type. If the object is actually of the given type, then the type assertion returns
+the same object. If not, it returns \c null. In the following snippet we assert that the \c parent
+object is a \c Rectangle before accessing a specific member of it.
\qml
Item {