Move a Q_DECLARE_METATYPE higher up in the file.
Having it low in the file causes ODR violations. Change-Id: I6267c7c1b043e77b251a88cb8940a9f063160891 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
parent
903fa2e4aa
commit
5809485dbe
@ -44,6 +44,8 @@
|
||||
#include <QtCore/qvariantanimation.h>
|
||||
#include <QtWidgets/qwidget.h>
|
||||
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user