set start value; now it can go backwards too

svn path=/trunk/KDE/kdelibs/; revision=1038848
This commit is contained in:
Aaron J. Seigo 2009-10-22 03:59:46 +00:00
parent 545164b5b8
commit fd48743847

View File

@ -73,6 +73,7 @@ QAbstractAnimation* FadeAnimation::render(QObject* parent)
//create animation
QPropertyAnimation* anim = new QPropertyAnimation(d->opacityEffect, "opacity", parent);
anim->setStartValue(0);
anim->setEndValue(m_animFactor);
anim->setDuration(duration());