aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/doc/src
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-11-03 19:25:37 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2021-11-04 12:35:48 +0000
commitb395e5c5c3bbd0441c95bd6483576b0e3fee5880 (patch)
treec516e4bc14debe5793ef75d3330c79e30f0e8ed2 /src/qml/doc/src
parentc442ed4d65b0319e4abd7a931cfb2f1f72842b84 (diff)
Type assertions: Mention the moniker as-casts
This should make it hopefully easier to find when searching for what as does in QML. Pick-to: 6.2 Change-Id: I9b71e6bd88b43856855e324fe828a8117c079201 Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'src/qml/doc/src')
-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 {