From 836e012dd4f1603fc11075310c4b525d87c95ed4 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Sat, 10 Jul 2010 10:49:34 +0000 Subject: [PATCH] set the target widget, and reverse the flow of the animation (temporary workaround for 4.5 release) svn path=/trunk/KDE/kdelibs/; revision=1148348 --- containment.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/containment.cpp b/containment.cpp index 80c434859..66777e256 100644 --- a/containment.cpp +++ b/containment.cpp @@ -985,6 +985,10 @@ void Containment::addApplet(Applet *applet, const QPointF &pos, bool delayInit) Plasma::Animation *anim = Plasma::Animator::create(Plasma::Animator::AppearAnimation); if (anim) { connect(anim, SIGNAL(finished()), this, SLOT(appletAppearAnimationComplete())); + anim->setTargetWidget(applet); + //FIXME: small hack until we have proper js anim support; allows 'zoom' to work in the + //'right' direction for appearance + anim->setDirection(QAbstractAnimation::Backward); anim->start(QAbstractAnimation::DeleteWhenStopped); } else { d->appletAppeared(applet);