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)
|
void Animator::slideIn(qreal progress, QGraphicsItem *item, const QPoint &start, const QPoint &destination)
|
||||||
{
|
{
|
||||||
int x = start.x() + (destination.x() - start.x()) * progress;
|
double x = start.x() + (destination.x() - start.x()) * progress;
|
||||||
int y = start.y() + (destination.y() - start.y()) * progress;
|
double y = start.y() + (destination.y() - start.y()) * progress;
|
||||||
item->setPos(x, y);
|
item->setPos(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Animator::slideOut(qreal progress, QGraphicsItem *item, const QPoint &start, const QPoint &destination)
|
void Animator::slideOut(qreal progress, QGraphicsItem *item, const QPoint &start, const QPoint &destination)
|
||||||
{
|
{
|
||||||
//kDebug();
|
//kDebug();
|
||||||
int x = start.x() + (destination.x() - start.x()) * progress;
|
double x = start.x() + (destination.x() - start.x()) * progress;
|
||||||
int y = start.y() + (destination.y() - start.y()) * progress;
|
double y = start.y() + (destination.y() - start.y()) * progress;
|
||||||
item->setPos(x, y);
|
item->setPos(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user