45 #include <QtCore/qeasingcurve.h> 46 #include <QtCore/qabstractanimation.h> 47 #include <QtCore/qvector.h> 48 #include <QtCore/qvariant.h> 49 #include <QtCore/qpair.h> 57 #ifndef QT_NO_ANIMATION 77 void setStartValue(
const QVariant &value);
80 void setEndValue(
const QVariant &value);
85 KeyValues keyValues()
const;
86 void setKeyValues(
const KeyValues &
values);
91 void setDuration(
int msecs);
96 typedef QVariant (*Interpolator)(
const void *from,
const void *to,
qreal progress);
99 void valueChanged(
const QVariant &value);
108 virtual void updateCurrentValue(
const QVariant &value) = 0;
113 static void registerInterpolator(Interpolator func,
int interpolationType);
119 template <
typename T>
124 #endif //QT_NO_ANIMATION 130 #endif //QANIMATION_H The QVariant class acts like a union for the most common Qt data types.
QVariant endValue
the end value of the animation
virtual void updateCurrentTime(int currentTime)=0
This pure virtual function is called every time the animation's currentTime changes.
#define QT_END_NAMESPACE
This macro expands to.
State
This enum describes the state of the animation.
The QEasingCurve class provides easing curves for controlling animation.
int duration
the duration of the animation
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
QPair< qreal, QVariant > KeyValue
This is a typedef for QPair<qreal, QVariant>.
The QObject class is the base class of all Qt objects.
QVariant startValue
the optional start value of the animation
void qRegisterAnimationInterpolator(QVariant(*func)(const T &from, const T &to, qreal progress))
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QVariantAnimation class provides an abstract base class for animations.
QVector< KeyValue > KeyValues
This is a typedef for QVector<KeyValue>
The QAbstractAnimation class is the base of all animations.
QVariant currentValue
the current value of the animation.
virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)
This virtual function is called by QAbstractAnimation when the state of the animation is changed from...
bool event(QEvent *event)
Reimplemented Function
QEasingCurve easingCurve
the easing curve of the animation
#define Q_DECLARE_PRIVATE(Class)
virtual int duration() const =0
The QEvent class is the base class of all event classes.
static void registerInterpolator(Interpolator func, int interpolationType)