QtCore/qvariantanimation.h Source File
Go to the documentation of this file.
57 #ifndef QT_NO_ANIMATION
59 class QVariantAnimationPrivate;
80 void setEndValue(const
QVariant &value);
82 QVariant keyValueAt(qreal step) const;
83 void setKeyValueAt(qreal step, 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);
103 bool event(
QEvent *event);
105 void updateCurrentTime(
int);
108 virtual
void updateCurrentValue(const
QVariant &value) = 0;
113 static
void registerInterpolator(Interpolator func,
int interpolationType);
119 template <typename T>
121 QVariantAnimation::registerInterpolator(reinterpret_cast<QVariantAnimation::Interpolator>(func), qMetaTypeId<T>());
124 #endif //QT_NO_ANIMATION
130 #endif //QANIMATION_H
void qRegisterAnimationInterpolator(QVariant(*func)(const T &from, const T &to, qreal progress))
#define QT_BEGIN_NAMESPACE
GLsizei const GLfloat * value
GLboolean GLenum GLenum GLvoid * values