Removing unused code.

svn path=/trunk/KDE/kdelibs/; revision=1059976
This commit is contained in:
Adenilson Cavalcanti Da Silva 2009-12-07 20:24:20 +00:00
parent 6ecaf4ed67
commit 215712e662
2 changed files with 1 additions and 36 deletions

View File

@ -40,9 +40,7 @@ public :
zvalue(0),
scale(0),
mopacity(0),
endScale(1.5),
opacityAnimation(0),
scaleAnimation(0)
endScale(1.5)
{}
~PulseAnimationPrivate()
@ -51,9 +49,6 @@ public :
QGraphicsWidget *under;
qreal zvalue, scale, mopacity;
qreal endScale;
QPropertyAnimation *opacityAnimation;
QPropertyAnimation *scaleAnimation;
QWeakPointer<QParallelAnimationGroup> animation;
};
@ -116,34 +111,6 @@ void PulseAnimation::resetPulser()
}
void PulseAnimation::createAnimation(qreal duration, qreal scale)
{
if (!d->under) {
setCopy();
}
QParallelAnimationGroup *anim = d->animation.data();
if (!anim) {
QParallelAnimationGroup *group = new QParallelAnimationGroup(this);
connect(group, SIGNAL(finished()), this, SLOT(resetPulser()));
d->opacityAnimation = new QPropertyAnimation(d->under, "opacity");
d->opacityAnimation->setDuration(duration);
d->opacityAnimation->setStartValue(1);
d->opacityAnimation->setEndValue(0);
group->addAnimation(d->opacityAnimation);
d->scaleAnimation = new QPropertyAnimation(d->under, "scale");
d->scaleAnimation->setDuration(duration);
d->scaleAnimation->setStartValue(d->scale);
d->scaleAnimation->setEndValue(scale);
/* The group takes ownership of all animations */
group->addAnimation(d->scaleAnimation);
d->animation = group;
}
}
void PulseAnimation::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)
{

View File

@ -47,8 +47,6 @@ protected:
private:
void createAnimation(qreal _duration, qreal _scale);
PulseAnimationPrivate *d;
};