From 71588f7b3d179e0d77e4853bbe7908beb2518963 Mon Sep 17 00:00:00 2001 From: Robert Griebl Date: Mon, 19 Oct 2020 18:15:47 +0200 Subject: 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 --- src/quick/util/qquickanimatorcontroller_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/quick/util/qquickanimatorcontroller_p.h') 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 -- cgit v1.2.3