diff --git a/tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp b/tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp index f1e02c65a8..8539b76dc3 100644 --- a/tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp +++ b/tests/auto/corelib/animation/qpropertyanimation/tst_qpropertyanimation.cpp @@ -44,6 +44,8 @@ #include #include +Q_DECLARE_METATYPE(QAbstractAnimation::State) + class UncontrolledAnimation : public QPropertyAnimation { Q_OBJECT @@ -699,7 +701,6 @@ struct Number }; Q_DECLARE_METATYPE(Number) -Q_DECLARE_METATYPE(QAbstractAnimation::State) QVariant numberInterpolator(const Number &f, const Number &t, qreal progress) {