make the JS anims an easing curve anim
svn path=/trunk/KDE/kdelibs/; revision=1120782
This commit is contained in:
parent
6c44a1e8a4
commit
c5748b3719
@ -34,7 +34,7 @@ namespace Plasma
|
||||
{
|
||||
|
||||
JavascriptAnimation::JavascriptAnimation(const QString &name, QObject *parent)
|
||||
: Animation(parent),
|
||||
: EasingAnimation(parent),
|
||||
#ifdef PLASMA_JSANIM_FPS
|
||||
m_fps(0),
|
||||
#endif
|
||||
@ -98,7 +98,7 @@ void JavascriptAnimation::updateState(QAbstractAnimation::State newState, QAbstr
|
||||
}
|
||||
}
|
||||
|
||||
void JavascriptAnimation::updateCurrentTime(int currentTime)
|
||||
void JavascriptAnimation::updateEffectiveTime(int currentTime)
|
||||
{
|
||||
if (m_method.isFunction()) {
|
||||
#ifdef PLASMA_JSANIM_FPS
|
||||
|
@ -22,9 +22,9 @@
|
||||
|
||||
#include <QScriptValue>
|
||||
|
||||
#include "animation.h"
|
||||
#include "plasma_export.h"
|
||||
#include "animator.h"
|
||||
#include "easinganimation_p.h"
|
||||
#include "plasma_export.h"
|
||||
|
||||
class QString;
|
||||
class QScriptEngine;
|
||||
@ -34,7 +34,7 @@ class QScriptEngine;
|
||||
namespace Plasma
|
||||
{
|
||||
|
||||
class JavascriptAnimation: public Animation
|
||||
class JavascriptAnimation: public EasingAnimation
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@ -49,7 +49,7 @@ public:
|
||||
|
||||
protected:
|
||||
void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState);
|
||||
void updateCurrentTime(int currentTime);
|
||||
void updateEffectiveTime(int currentTime);
|
||||
|
||||
private:
|
||||
#ifdef PLASMA_JSANIM_FPS
|
||||
|
Loading…
x
Reference in New Issue
Block a user