Change-Id: I8545d6f26e2c2398e750b0b85ba87892a2e376ae
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
QGraphicsItem::d_ptr->isObject = true;
}
+/*!
+ \reimp
+*/
+bool QGraphicsObject::event(QEvent *ev)
+{
+ if (ev->type() == QEvent::StyleAnimationUpdate) {
+ update();
+ return true;
+ }
+ return QObject::event(ev);
+}
+
#ifndef QT_NO_GESTURES
/*!
Subscribes the graphics object to the given \a gesture with specific \a flags.
protected:
QGraphicsObject(QGraphicsItemPrivate &dd, QGraphicsItem *parent);
+
+ bool event(QEvent *ev);
+
private:
friend class QGraphicsItem;
friend class QGraphicsItemPrivate;