use correct precision
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=739895
This commit is contained in:
parent
a93b6f8e07
commit
d8961b351c
@ -111,16 +111,16 @@ void Animator::frameAppear(qreal frame, QGraphicsItem* item, const QRegion& draw
|
||||
|
||||
void Animator::slideIn(qreal progress, QGraphicsItem *item, const QPoint &start, const QPoint &destination)
|
||||
{
|
||||
int x = start.x() + (destination.x() - start.x()) * progress;
|
||||
int y = start.y() + (destination.y() - start.y()) * progress;
|
||||
double x = start.x() + (destination.x() - start.x()) * progress;
|
||||
double y = start.y() + (destination.y() - start.y()) * progress;
|
||||
item->setPos(x, y);
|
||||
}
|
||||
|
||||
void Animator::slideOut(qreal progress, QGraphicsItem *item, const QPoint &start, const QPoint &destination)
|
||||
{
|
||||
//kDebug();
|
||||
int x = start.x() + (destination.x() - start.x()) * progress;
|
||||
int y = start.y() + (destination.y() - start.y()) * progress;
|
||||
double x = start.x() + (destination.x() - start.x()) * progress;
|
||||
double y = start.y() + (destination.y() - start.y()) * progress;
|
||||
item->setPos(x, y);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user