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:
parent
0337eb0ae3
commit
368f6e5896
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user