From defdceb00ca880ca29b576edc4f795d9f580e630 Mon Sep 17 00:00:00 2001 From: David Boddie Date: Fri, 7 Feb 2025 14:22:59 +0100 Subject: [PATCH] doc: Fix links and auto-links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed function names to include parentheses so that they can be auto- linked to getters and setters for bindable properties. Change-Id: I72a06a7def55348bd1295e559751a16c62c93a84 Reviewed-by: Topi Reiniƶ (cherry picked from commit d02ac6b3e02d8a5822fc772e456249afaf00dfb3) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit 57baa91ec2ad0964a9da0f1cf0a7caa9e8536d28) --- src/corelib/animation/qabstractanimation.cpp | 5 ++--- src/corelib/animation/qpropertyanimation.cpp | 2 +- src/corelib/animation/qvariantanimation.cpp | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/corelib/animation/qabstractanimation.cpp b/src/corelib/animation/qabstractanimation.cpp index 53bb01c3184..789b9aaef44 100644 --- a/src/corelib/animation/qabstractanimation.cpp +++ b/src/corelib/animation/qabstractanimation.cpp @@ -1276,7 +1276,7 @@ int QAbstractAnimation::currentLoopTime() const \brief the current time and progress of the animation This property describes the animation's current time. You can change the - current time by calling setCurrentTime, or you can call start() and let + current time by calling setCurrentTime(), or you can call start() and let the animation run, setting the current time automatically as the animation progresses. @@ -1428,8 +1428,7 @@ void QAbstractAnimation::pause() /*! Resumes the animation after it was paused. When the animation is resumed, - it emits the resumed() and stateChanged() signals. The currenttime is not - changed. + it emits the stateChanged() signal. The currentTime property is not changed. \sa start(), pause(), state() */ diff --git a/src/corelib/animation/qpropertyanimation.cpp b/src/corelib/animation/qpropertyanimation.cpp index f11c9c238ef..04f048af753 100644 --- a/src/corelib/animation/qpropertyanimation.cpp +++ b/src/corelib/animation/qpropertyanimation.cpp @@ -243,7 +243,7 @@ void QPropertyAnimation::updateCurrentValue(const QVariant &value) /*! \reimp - If the startValue is not defined when the state of the animation changes from Stopped to Running, + If the \l{QVariantAnimation::}{startValue} is not defined when the state of the animation changes from Stopped to Running, the current property value is used as the initial value for the animation. */ void QPropertyAnimation::updateState(QAbstractAnimation::State newState, diff --git a/src/corelib/animation/qvariantanimation.cpp b/src/corelib/animation/qvariantanimation.cpp index d268ab185ac..be5c09519e9 100644 --- a/src/corelib/animation/qvariantanimation.cpp +++ b/src/corelib/animation/qvariantanimation.cpp @@ -338,7 +338,7 @@ QVariantAnimation::~QVariantAnimation() elastic effect on the values of the interpolated variant. QVariantAnimation will use the QEasingCurve::valueForProgress() to - transform the "normalized progress" (currentTime / totalDuration) + transform the "normalized progress" (currentTime() / totalDuration()) of the animation into the effective progress actually used by the animation. It is this effective progress that will be the progress when interpolated() is called. Also, the steps in the