Adding pulse animation when a new plasmoid is inserted in the desktop.

I'm looking for feedback to know if it is worthwhile to have it as default.


svn path=/trunk/KDE/kdelibs/; revision=1070133
This commit is contained in:
Adenilson Cavalcanti Da Silva 2010-01-04 23:34:05 +00:00
parent 0337eb0ae3
commit 368f6e5896

View File

@ -2316,6 +2316,12 @@ void ContainmentPrivate::appletDestroyed(Plasma::Applet *applet)
void ContainmentPrivate::containmentAppletAnimationComplete()
{
Applet *applet = qgraphicsitem_cast<Applet*>(zoomAnim->targetWidget());
Animation *pulse = Plasma::Animator::create(Plasma::Animator::PulseAnimation);
pulse->setTargetWidget(applet);
pulse->setProperty("duration", 300);
pulse->setProperty("targetScale", 1.3);
pulse->start(QAbstractAnimation::DeleteWhenStopped);
if (applet->parentItem() == q) {
if (type == Containment::DesktopContainment) {
applet->installSceneEventFilter(q);