animpoint.cpp
changeset 724 cf14046909cd
parent 688 d0086df58648
child 726 7f43b93242aa
     1.1 --- a/animpoint.cpp	Mon May 05 13:46:42 2008 +0000
     1.2 +++ b/animpoint.cpp	Mon Aug 04 13:35:54 2008 +0000
     1.3 @@ -88,7 +88,7 @@
     1.4  
     1.5  uint AnimPoint::getTicks()
     1.6  {
     1.7 -	return animTicks;
     1.8 +	return (uint) animTicks;
     1.9  }
    1.10  
    1.11  void AnimPoint::setAnimated(bool b)
    1.12 @@ -110,15 +110,13 @@
    1.13  	{
    1.14  		vector=QPointF(0,0);
    1.15  		animated=false;
    1.16 +		setX (destPos.x() );
    1.17 +		setY (destPos.y() );
    1.18  		return animated;
    1.19  	}
    1.20 -
    1.21  	setX (startPos.x() + vector.x()*sqrt(n/animTicks) );
    1.22  	setY (startPos.y() + vector.y()*sqrt(n/animTicks) );
    1.23 -	/*
    1.24 -	setX (startPos.x() + vector.x()*(n/animTicks) );
    1.25 -	setY (startPos.y() + vector.y()*(n/animTicks) );
    1.26 -	*/
    1.27 +
    1.28  	return animated;
    1.29  }
    1.30