we're not checking the value, use a static_cast
svn path=/trunk/KDE/kdelibs/; revision=1125894
This commit is contained in:
parent
4ab87220a3
commit
6c5f292e2f
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user