From 215712e662cabc11be0c4059f5ea60a6c800231c Mon Sep 17 00:00:00 2001 From: Adenilson Cavalcanti Da Silva Date: Mon, 7 Dec 2009 20:24:20 +0000 Subject: [PATCH] Removing unused code. svn path=/trunk/KDE/kdelibs/; revision=1059976 --- animations/pulser.cpp | 35 +---------------------------------- animations/pulser_p.h | 2 -- 2 files changed, 1 insertion(+), 36 deletions(-) diff --git a/animations/pulser.cpp b/animations/pulser.cpp index 3a0a543bf..39b7d849d 100644 --- a/animations/pulser.cpp +++ b/animations/pulser.cpp @@ -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 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) { diff --git a/animations/pulser_p.h b/animations/pulser_p.h index 843f78d9e..d03a1a0fb 100644 --- a/animations/pulser_p.h +++ b/animations/pulser_p.h @@ -47,8 +47,6 @@ protected: private: - void createAnimation(qreal _duration, qreal _scale); - PulseAnimationPrivate *d; };