API REVIEW: duration(element) -> elementAnimationDuration(element)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800743
This commit is contained in:
parent
2c169f97ff
commit
b1da29061c
@ -73,7 +73,7 @@ int Animator::movementAnimationDuration(Plasma::Phase::Movement movement) const
|
|||||||
return 270;
|
return 270;
|
||||||
}
|
}
|
||||||
|
|
||||||
int Animator::duration(Plasma::Phase::ElementAnimation) const
|
int Animator::elementAnimationDuration(Plasma::Phase::ElementAnimation) const
|
||||||
{
|
{
|
||||||
return 333;
|
return 333;
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ public:
|
|||||||
virtual int elementAnimationFramesPerSecond(Plasma::Phase::ElementAnimation) const;
|
virtual int elementAnimationFramesPerSecond(Plasma::Phase::ElementAnimation) const;
|
||||||
virtual int animationDuration(Plasma::Phase::Animation) const;
|
virtual int animationDuration(Plasma::Phase::Animation) const;
|
||||||
virtual int movementAnimationDuration(Plasma::Phase::Movement) const;
|
virtual int movementAnimationDuration(Plasma::Phase::Movement) const;
|
||||||
virtual int duration(Plasma::Phase::ElementAnimation) const;
|
virtual int elementAnimationDuration(Plasma::Phase::ElementAnimation) const;
|
||||||
virtual Phase::CurveShape curve(Plasma::Phase::Animation) const;
|
virtual Phase::CurveShape curve(Plasma::Phase::Animation) const;
|
||||||
virtual Phase::CurveShape curve(Plasma::Phase::Movement) const;
|
virtual Phase::CurveShape curve(Plasma::Phase::Movement) const;
|
||||||
virtual Phase::CurveShape curve(Plasma::Phase::ElementAnimation) const;
|
virtual Phase::CurveShape curve(Plasma::Phase::ElementAnimation) const;
|
||||||
|
@ -399,7 +399,7 @@ Phase::AnimId Phase::animateElement(QGraphicsItem *item, ElementAnimation animat
|
|||||||
//TODO: variance in times based on the value of animation
|
//TODO: variance in times based on the value of animation
|
||||||
state->frames = d->animator->elementAnimationFramesPerSecond(animation) / 5;
|
state->frames = d->animator->elementAnimationFramesPerSecond(animation) / 5;
|
||||||
state->currentFrame = 0;
|
state->currentFrame = 0;
|
||||||
state->interval = d->animator->duration(animation) / state->frames;
|
state->interval = d->animator->elementAnimationDuration(animation) / state->frames;
|
||||||
state->interval = (state->interval / MIN_TICK_RATE) * MIN_TICK_RATE;
|
state->interval = (state->interval / MIN_TICK_RATE) * MIN_TICK_RATE;
|
||||||
state->currentInterval = state->interval;
|
state->currentInterval = state->interval;
|
||||||
state->id = ++d->animId;
|
state->id = ++d->animId;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user