diff options
author | Luca Di Sera <luca.disera@qt.io> | 2022-09-06 14:41:55 +0200 |
---|---|---|
committer | Luca Di Sera <luca.disera@qt.io> | 2022-09-08 12:46:26 +0200 |
commit | 7938e9ab438d5163897643bd03c1f8f7c32e6d34 (patch) | |
tree | 6934df1547281ebc2a79557fcc915a651594c7fc /src/quick/util/qquickstategroup.cpp | |
parent | 13b42ecf193e3406d735797add3d66f8afc1985e (diff) |
Doc: Remove usages of "\js"
QDoc provides a "\js"/"\endjs", undocumented, unsupported, command pair
to allow writers to write javascript code-blocks in the documentation.
This command is part of a never-finalized javascript support for QDoc
that is now being removed.
To avoid breakages in the documentation, the usages of the command are
now removed.
The commands were replaced by a "\qml"/"\endqml" pair, that should be
mostly equivalent, albeit some highlighting may be lost in the offline
documentation.
Task-number: QTBUG-106275
Change-Id: I765c72542ff46320332d1535fed823421514ed30
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/quick/util/qquickstategroup.cpp')
-rw-r--r-- | src/quick/util/qquickstategroup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/util/qquickstategroup.cpp b/src/quick/util/qquickstategroup.cpp index 2812b5824a..591a39a325 100644 --- a/src/quick/util/qquickstategroup.cpp +++ b/src/quick/util/qquickstategroup.cpp @@ -257,14 +257,14 @@ void QQuickStateGroupPrivate::clear_transitions(QQmlListProperty<QQuickTransitio This property is often used in scripts to change between states. For example: - \js + \qml function toggle() { if (button.state == 'On') button.state = 'Off'; else button.state = 'On'; } - \endjs + \endqml If the state group is in its base state (i.e. no explicit state has been set), \c state will be a blank string. Likewise, you can return a |