make the frame rates per second by dividing by 1/duration. we will likely want different durations per anim, but i really like the idea of controlling the durations centrally as a means to .. guide (yeah, that's it!) Animator developers
svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=672786
This commit is contained in:
parent
c62b683dbd
commit
73ccedb42e
@ -121,8 +121,8 @@ void Phase::animate(QGraphicsItem* item, Animation animation)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
QTimeLine* timeLine = new QTimeLine(300, this);
|
QTimeLine* timeLine = new QTimeLine(333, this);
|
||||||
timeLine->setFrameRange(0, frames);
|
timeLine->setFrameRange(0, frames / 3.0);
|
||||||
|
|
||||||
AnimationState state;
|
AnimationState state;
|
||||||
state.item = item;
|
state.item = item;
|
||||||
|
Loading…
Reference in New Issue
Block a user