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:
Aaron J. Seigo 2007-06-08 06:05:40 +00:00
parent c62b683dbd
commit 73ccedb42e

View File

@ -121,8 +121,8 @@ void Phase::animate(QGraphicsItem* item, Animation animation)
return;
}
QTimeLine* timeLine = new QTimeLine(300, this);
timeLine->setFrameRange(0, frames);
QTimeLine* timeLine = new QTimeLine(333, this);
timeLine->setFrameRange(0, frames / 3.0);
AnimationState state;
state.item = item;