1.1 --- a/animpoint.cpp Tue Mar 02 13:59:19 2010 +0000
1.2 +++ b/animpoint.cpp Sat Mar 06 20:05:02 2010 +0000
1.3 @@ -116,7 +116,7 @@
1.4 }
1.5
1.6 // Some math to slow down the movement in the end
1.7 - qreal f=1-n/animTicks;
1.8 + qreal f=1-n/(qreal)animTicks;
1.9 qreal ff=1-f*f*f;
1.10 setX (startPos.x() + vector.x()*ff );
1.11 setY (startPos.y() + vector.y()*ff );
2.1 --- a/animpoint.h Tue Mar 02 13:59:19 2010 +0000
2.2 +++ b/animpoint.h Sat Mar 06 20:05:02 2010 +0000
2.3 @@ -30,7 +30,7 @@
2.4 QPointF destPos;
2.5 QPointF vector;
2.6 qreal n;
2.7 - qreal animTicks;
2.8 + uint animTicks;
2.9 bool animated;
2.10
2.11 };