Qt 4.8
Classes | Functions
qvariantanimation_p.h File Reference
#include "qvariantanimation.h"
#include <QtCore/qeasingcurve.h>
#include <QtCore/qmetaobject.h>
#include <QtCore/qvector.h>
#include "private/qabstractanimation_p.h"

Go to the source code of this file.

Classes

class  QVariantAnimationPrivate
 

Functions

template<typename T >
_q_interpolate (const T &f, const T &t, qreal progress)
 
template<typename T >
QVariant _q_interpolateVariant (const T &from, const T &to, qreal progress)
 

Function Documentation

◆ _q_interpolate()

template<typename T >
T _q_interpolate ( const T &  f,
const T &  t,
qreal  progress 
)
inline

Definition at line 109 of file qvariantanimation_p.h.

Referenced by _q_interpolateVariant().

110 {
111  return T(f + (t - f) * progress);
112 }

◆ _q_interpolateVariant()

template<typename T >
QVariant _q_interpolateVariant ( const T &  from,
const T &  to,
qreal  progress 
)
inline

Definition at line 114 of file qvariantanimation_p.h.

115 {
116  return _q_interpolate(from, to, progress);
117 }
T _q_interpolate(const T &f, const T &t, qreal progress)