Adding the missing factors in AnimationPrivate.

I guess that to make its fields accessable to other animation classes
I will have to define it in plasma/private?


svn path=/trunk/KDE/kdelibs/; revision=1036730
This commit is contained in:
Adenilson Cavalcanti Da Silva 2009-10-17 17:18:51 +00:00
parent 1a6384bb3f
commit c4cf4ed175

View File

@ -29,6 +29,24 @@ public:
* Object the animation(s) should act upon. * Object the animation(s) should act upon.
*/ */
QGraphicsWidget* animObject; QGraphicsWidget* animObject;
/**
* Animation factor: its meaning depends on the animation class
* (e.g. opacity in FadeAnimation, scale in GrowAnimation, etc)
*/
qreal animFactor;
/**
* Animation direction: where the animation will move.
*/
AnimationDirection animDirection;
/**
* Animation distance: displacement factor for animations where
* there is change in the position of animated widget.
*/
qreal animDistance;
}; };
AbstractAnimation::AbstractAnimation(): d(new AnimationPrivate) AbstractAnimation::AbstractAnimation(): d(new AnimationPrivate)