add properties for animations
svn path=/trunk/KDE/kdelibs/; revision=1038078
This commit is contained in:
parent
fbae18a177
commit
cd443a3ff9
@ -56,6 +56,36 @@ QEasingCurve::Type AbstractAnimation::easingCurveType() const
|
|||||||
return d->easingCurve;
|
return d->easingCurve;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AbstractAnimation::setAnimationDirection(AnimationDirection animationDirection)
|
||||||
|
{
|
||||||
|
d->animDirection = animationDirection;
|
||||||
|
}
|
||||||
|
|
||||||
|
AnimationDirection AbstractAnimation::animationDirection() const
|
||||||
|
{
|
||||||
|
return d->animDirection;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AbstractAnimation::setAnimationDistance(qreal animationDistance)
|
||||||
|
{
|
||||||
|
d->animDistance = animationDistance;
|
||||||
|
}
|
||||||
|
|
||||||
|
qreal AbstractAnimation::animationDistance() const
|
||||||
|
{
|
||||||
|
return d->animDistance;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AbstractAnimation::setAnimationVisible(bool animationVisible)
|
||||||
|
{
|
||||||
|
d->animVisible = animationVisible;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool AbstractAnimation::animationVisible() const
|
||||||
|
{
|
||||||
|
return d->animVisible;
|
||||||
|
}
|
||||||
|
|
||||||
AnimationPrivate* AbstractAnimation::getAnimationPrivate()
|
AnimationPrivate* AbstractAnimation::getAnimationPrivate()
|
||||||
{
|
{
|
||||||
return d;
|
return d;
|
||||||
|
@ -47,6 +47,9 @@ class PLASMA_EXPORT AbstractAnimation : public QObject
|
|||||||
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_PROPERTY(QEasingCurve::Type easingCurveType READ easingCurveType WRITE setEasingCurveType)
|
Q_PROPERTY(QEasingCurve::Type easingCurveType READ easingCurveType WRITE setEasingCurveType)
|
||||||
|
Q_PROPERTY(AnimationDirection animationDirection READ animationDirection WRITE setAnimationDirection)
|
||||||
|
Q_PROPERTY(qreal animationDistance READ animationDistance WRITE setAnimationDistance)
|
||||||
|
Q_PROPERTY(bool animationVisible READ animationVisible WRITE setAnimationVisible)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -75,6 +78,39 @@ public:
|
|||||||
*/
|
*/
|
||||||
QEasingCurve::Type easingCurveType() const;
|
QEasingCurve::Type easingCurveType() const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the animation direction
|
||||||
|
* @arg animationDirection animation direction
|
||||||
|
*/
|
||||||
|
void setAnimationDirection(AnimationDirection animationDirection);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the animation direction
|
||||||
|
*/
|
||||||
|
AnimationDirection animationDirection() const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the animation distance
|
||||||
|
* @animationDistance animation distance
|
||||||
|
*/
|
||||||
|
void setAnimationDistance(qreal animationDistance);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the animation distance
|
||||||
|
*/
|
||||||
|
qreal animationDistance() const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* set the animation visibility
|
||||||
|
* @arg animationVisible animation visibility
|
||||||
|
*/
|
||||||
|
void setAnimationVisible(bool animationVisible);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get the animation visibility
|
||||||
|
*/
|
||||||
|
bool animationVisible() const;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user