diff options
author | Kai Köhne <kai.koehne@qt.io> | 2023-06-28 12:48:28 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-08-14 16:41:59 +0000 |
commit | e47ba26be3f1222d6f51d2e5f3e6b5758c4d8bd6 (patch) | |
tree | 032c518916beeab8d336e588690905270adc1be7 /examples/demos | |
parent | 13311a53ac97d191fd7dae8a049b9145f5a3d16c (diff) |
Doc: Fix links to AnimationController in Calcqlatr example
Both QtQuick and Qt3D feature an AnimationController type. Make sure
the right one is linked to.
Change-Id: I292765f5ccc7fcd8228e461fc375b0a9b71768d6
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
(cherry picked from commit 94d585bc448fe661989aba3e37d5f72ae5074fe6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/demos')
-rw-r--r-- | examples/demos/calqlatr/doc/src/calqlatr.qdoc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/demos/calqlatr/doc/src/calqlatr.qdoc b/examples/demos/calqlatr/doc/src/calqlatr.qdoc index a26671cd6..f626008da 100644 --- a/examples/demos/calqlatr/doc/src/calqlatr.qdoc +++ b/examples/demos/calqlatr/doc/src/calqlatr.qdoc @@ -6,7 +6,7 @@ \ingroup qtquickdemos \example demos/calqlatr \brief A Qt Quick app designed for portrait devices that uses custom components, - animated with AnimationController, and JavaScript for the application logic. + animated with \l[QtQuick]{AnimationController}, and JavaScript for the application logic. \meta {tag} {quick} \examplecategory {Application Examples} \image qtquick-demo-calqlatr.png @@ -73,12 +73,12 @@ images to make the display component look like a slip of paper that contains a grip. Users can drag the grip to move the display from left to right. - When users release the grip, the AnimationController QML type that we define + When users release the grip, the \l[QtQuick]{AnimationController} QML type that we define in the calqlatr.qml file finishes running the controlled animation in either a forwards or a backwards direction. To run the animation, we call either completeToEnd() or completeToBeginning(), depending on the direction. We do this in the MouseArea's \c onReleased signal handler, where \c controller - is the id of our AnimationController: + is the id of our \l[QtQuick]{AnimationController}: \quotefromfile demos/calqlatr/calqlatr.qml \skipto MouseArea @@ -88,11 +88,11 @@ \printuntil } \printuntil } - Unlike other QML animation types, AnimationController is not driven by + Unlike other QML animation types, \l[QtQuick]{AnimationController} is not driven by internal timers but by explicitly setting its progress property to a value between \c 0.0 and \c 1.0. - Inside the AnimationController, we run two NumberAnimation instances in + Inside the \l[QtQuick]{AnimationController}, we run two NumberAnimation instances in parallel to move the number pad and the display components simultaneously to the opposite sides of the view. In addition, we run a SequentialAnimation instance to scale the number pad during the transition, giving the animation |