* remove the obsoleted render() method (which was now empty anyways)
* don't crash if we don't have a widget when sync'ing the attributes svn path=/trunk/KDE/kdelibs/; revision=1058155
This commit is contained in:
parent
e29ca567bc
commit
3efd2e6c85
@ -36,13 +36,16 @@ void SlideAnimation::setWidgetToAnimate(QGraphicsWidget *widget)
|
||||
|
||||
syncProperties();
|
||||
|
||||
QObject::connect(m_animation, SIGNAL(finished()), widget, SLOT(show()));
|
||||
QObject::connect(m_animation, SIGNAL(finished()), this, SIGNAL(finished()));
|
||||
}
|
||||
|
||||
void SlideAnimation::syncProperties()
|
||||
{
|
||||
QGraphicsWidget *widget = widgetToAnimate();
|
||||
if (!widget) {
|
||||
return;
|
||||
}
|
||||
|
||||
qreal x = widget->x();
|
||||
qreal y = widget->y();
|
||||
|
||||
@ -143,9 +146,5 @@ void SlideAnimation::start(QAbstractAnimation::DeletionPolicy policy)
|
||||
}
|
||||
}
|
||||
|
||||
QAbstractAnimation* SlideAnimation::render(QObject* parent)
|
||||
{
|
||||
}
|
||||
|
||||
} //namespace Plasma
|
||||
|
||||
|
@ -77,7 +77,6 @@ public:
|
||||
|
||||
protected:
|
||||
void start(QAbstractAnimation::DeletionPolicy policy = KeepWhenStopped);
|
||||
virtual QAbstractAnimation* render(QObject* parent = 0);
|
||||
void syncProperties();
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user