adapt to Animation API cleanup
svn path=/trunk/KDE/kdelibs/; revision=1069731
This commit is contained in:
parent
8ccd1a0d9c
commit
7a46df7066
@ -455,7 +455,7 @@ void Applet::destroy()
|
||||
Animation *zoomAnim =
|
||||
Plasma::Animator::create(Plasma::Animator::ZoomAnimation);
|
||||
connect(zoomAnim, SIGNAL(finished()), this, SLOT(appletAnimationComplete()));
|
||||
zoomAnim->setWidgetToAnimate(this);
|
||||
zoomAnim->setTargetWidget(this);
|
||||
zoomAnim->start();
|
||||
}
|
||||
}
|
||||
@ -2858,7 +2858,7 @@ void AppletOverlayWidget::destroy()
|
||||
Animation *zoomAnim =
|
||||
Plasma::Animator::create(Plasma::Animator::ZoomAnimation);
|
||||
connect(zoomAnim, SIGNAL(finished()), this, SLOT(overlayAnimationComplete()));
|
||||
zoomAnim->setWidgetToAnimate(this);
|
||||
zoomAnim->setTargetWidget(this);
|
||||
zoomAnim->start();
|
||||
}
|
||||
|
||||
|
@ -962,7 +962,7 @@ void Containment::addApplet(Applet *applet, const QPointF &pos, bool delayInit)
|
||||
applet->setScale(0);
|
||||
d->zoomAnim = Plasma::Animator::create(Plasma::Animator::ZoomAnimation);
|
||||
connect(d->zoomAnim, SIGNAL(finished()), this, SLOT(containmentAppletAnimationComplete()));
|
||||
d->zoomAnim->setWidgetToAnimate(applet);
|
||||
d->zoomAnim->setTargetWidget(applet);
|
||||
d->zoomAnim->setProperty("zoom", 1.0);
|
||||
d->zoomAnim->start();
|
||||
}
|
||||
@ -2315,7 +2315,7 @@ void ContainmentPrivate::appletDestroyed(Plasma::Applet *applet)
|
||||
|
||||
void ContainmentPrivate::containmentAppletAnimationComplete()
|
||||
{
|
||||
Applet *applet = qgraphicsitem_cast<Applet*>(zoomAnim->widgetToAnimate());
|
||||
Applet *applet = qgraphicsitem_cast<Applet*>(zoomAnim->targetWidget());
|
||||
if (applet->parentItem() == q) {
|
||||
if (type == Containment::DesktopContainment) {
|
||||
applet->installSceneEventFilter(q);
|
||||
|
@ -629,7 +629,7 @@ void DesktopToolBox::showToolBox()
|
||||
d->toolBacker->setOpacity(0);
|
||||
d->toolBacker->show();
|
||||
Plasma::Animation *fadeAnim = Animator::create(Animator::FadeAnimation, d->toolBacker);
|
||||
fadeAnim->setWidgetToAnimate(d->toolBacker);
|
||||
fadeAnim->setTargetWidget(d->toolBacker);
|
||||
fadeAnim->setProperty("startOpacity", 0);
|
||||
fadeAnim->setProperty("targetOpacity", 1);
|
||||
fadeAnim->start(QAbstractAnimation::DeleteWhenStopped);
|
||||
@ -670,7 +670,7 @@ void DesktopToolBox::hideToolBox()
|
||||
if (d->toolBacker) {
|
||||
Plasma::Animation *fadeAnim = Animator::create(Animator::FadeAnimation, d->toolBacker);
|
||||
connect(fadeAnim, SIGNAL(finished()), this, SLOT(hideToolBacker()));
|
||||
fadeAnim->setWidgetToAnimate(d->toolBacker);
|
||||
fadeAnim->setTargetWidget(d->toolBacker);
|
||||
fadeAnim->setProperty("startOpacity", 1);
|
||||
fadeAnim->setProperty("targetOpacity", 0);
|
||||
fadeAnim->start(QAbstractAnimation::DeleteWhenStopped);
|
||||
|
@ -44,7 +44,7 @@ FocusIndicator::FocusIndicator(QGraphicsWidget *parent, QString widget)
|
||||
m_background->setCacheAllRenderedFrames(true);
|
||||
|
||||
m_fade = Animator::create(Animator::FadeAnimation, this);
|
||||
m_fade->setWidgetToAnimate(this);
|
||||
m_fade->setTargetWidget(this);
|
||||
m_fade->setProperty("startOpacity", 0.0);
|
||||
m_fade->setProperty("targetOpacity", 1.0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user