diff options
author | Robert Griebl <robert.griebl@qt.io> | 2020-10-19 18:15:47 +0200 |
---|---|---|
committer | Robert Griebl <robert.griebl@qt.io> | 2020-11-28 11:56:58 +0100 |
commit | 71588f7b3d179e0d77e4853bbe7908beb2518963 (patch) | |
tree | 695f5fc941a8e5fc6344260d2940a311a7861a17 /src/quick/util/qquickanimatorcontroller_p.h | |
parent | ddfb954cf4b407e246c325e794424484681ca76a (diff) |
Fix Animators requiring an explicit from value
Contrary to the documentation, Animators have always had the requirement
that an explicit from value was specified, which isn't very convenient
e.g. in Transitions.
This patch was tested against a (quite big) real world customer
application using Qt 5.12 and Qt 5.15.
Also a new unit test was added to test this feature.
I couldn't find another way to access the actual AnimatorJob besides
querying the window's AnimatorController, so I had to add an auto-test
only export on that class.
Task-number: QTBUG-66475
Pick-to: 6.0 6.0.0
Change-Id: Icc2a220a13f587d69594a4b2ed345abf0438e29e
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/quick/util/qquickanimatorcontroller_p.h')
-rw-r--r-- | src/quick/util/qquickanimatorcontroller_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/util/qquickanimatorcontroller_p.h b/src/quick/util/qquickanimatorcontroller_p.h index 428a6700d4..9c345b8152 100644 --- a/src/quick/util/qquickanimatorcontroller_p.h +++ b/src/quick/util/qquickanimatorcontroller_p.h @@ -61,7 +61,7 @@ QT_BEGIN_NAMESPACE -class QQuickAnimatorController : public QObject, public QAnimationJobChangeListener +class Q_AUTOTEST_EXPORT QQuickAnimatorController : public QObject, public QAnimationJobChangeListener { Q_OBJECT |