get rid of the visibility thing
svn path=/trunk/KDE/kdelibs/; revision=1058031
This commit is contained in:
parent
435961b498
commit
1349be10af
@ -33,8 +33,7 @@ namespace Plasma
|
||||
|
||||
|
||||
AnimationPrivate::AnimationPrivate()
|
||||
: animVisible(true),
|
||||
dirtyFlag(false),
|
||||
: dirtyFlag(false),
|
||||
easingCurve(QEasingCurve::Linear),
|
||||
forwards(QAbstractAnimation::Forward),
|
||||
duration(250)
|
||||
@ -52,16 +51,16 @@ Animation::~Animation()
|
||||
delete d;
|
||||
}
|
||||
|
||||
void Animation::setDuration(int duration)
|
||||
{
|
||||
d->duration = duration;
|
||||
}
|
||||
|
||||
int Animation::duration() const
|
||||
{
|
||||
return d->duration;
|
||||
}
|
||||
|
||||
void Animation::setDuration(int duration)
|
||||
{
|
||||
d->duration = qMax(0, duration);
|
||||
}
|
||||
|
||||
void Animation::setWidgetToAnimate(QGraphicsWidget* receiver)
|
||||
{
|
||||
d->animObject = receiver;
|
||||
@ -92,11 +91,6 @@ void Animation::updateDirection(QAbstractAnimation::Direction direction)
|
||||
d->forwards = direction;
|
||||
}
|
||||
|
||||
void Animation::setVisible(bool isVisible)
|
||||
{
|
||||
d->animVisible = isVisible;
|
||||
}
|
||||
|
||||
void Animation::start(QAbstractAnimation::DeletionPolicy policy)
|
||||
{
|
||||
/* TODO: Actually treat policy parameter */
|
||||
|
@ -92,23 +92,8 @@ public:
|
||||
*/
|
||||
QEasingCurve::Type easingCurveType() const;
|
||||
|
||||
/**
|
||||
* set the animation visibility
|
||||
* @arg isVisible animation visibility
|
||||
*/
|
||||
void setVisible(bool isVisible);
|
||||
|
||||
/**
|
||||
* get the animation visibility
|
||||
*/
|
||||
bool isVisible() const;
|
||||
|
||||
public Q_SLOTS:
|
||||
/**
|
||||
* Start the animation.
|
||||
*/
|
||||
void start(QAbstractAnimation::DeletionPolicy policy = KeepWhenStopped);
|
||||
|
||||
/**
|
||||
* Each individual class must override this function to place their main
|
||||
* functionality. This function must take the values from the constructor,
|
||||
|
@ -62,12 +62,6 @@ public:
|
||||
*/
|
||||
qreal distance() const;
|
||||
|
||||
/**
|
||||
* Set if the widget is visible at the end of the animation (default True).
|
||||
* @param visibility True for visible, False for not.
|
||||
*/
|
||||
void setVisibleAtEnd(bool visibility);
|
||||
|
||||
/**
|
||||
* Set the animation direction
|
||||
* @arg direction animation direction
|
||||
|
Loading…
x
Reference in New Issue
Block a user