* 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:
Aaron J. Seigo 2009-12-04 01:12:14 +00:00
parent e29ca567bc
commit 3efd2e6c85
2 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -77,7 +77,6 @@ public:
protected:
void start(QAbstractAnimation::DeletionPolicy policy = KeepWhenStopped);
virtual QAbstractAnimation* render(QObject* parent = 0);
void syncProperties();
private: