we're not checking the value, use a static_cast

svn path=/trunk/KDE/kdelibs/; revision=1125894
This commit is contained in:
Aaron J. Seigo 2010-05-12 16:17:33 +00:00
parent 4ab87220a3
commit 6c5f292e2f

View File

@ -83,8 +83,7 @@ QPropertyAnimation *IconHoverAnimation::animation() const
void IconHoverAnimation::setValue(qreal value)
{
m_value = value;
QGraphicsItem *item = qobject_cast<QGraphicsItem*>(parent());
QGraphicsWidget *item = static_cast<QGraphicsWidget*>(parent());
item->update();
}