summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicswidget.cpp
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-10-05 08:20:38 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-10-05 08:42:10 (GMT)
commit10dba674d366260589f3b742e5b1b87ce9ddd47c (patch)
treeded3feb9a219dba8f204d0015d2e44ef7114db20 /src/gui/graphicsview/qgraphicswidget.cpp
parentd1d661a1858e28befe5980c22009702f5ea82829 (diff)
downloadQt-10dba674d366260589f3b742e5b1b87ce9ddd47c.zip
Qt-10dba674d366260589f3b742e5b1b87ce9ddd47c.tar.gz
Qt-10dba674d366260589f3b742e5b1b87ce9ddd47c.tar.bz2
Make QEventTransition works with QGraphicsObject.
QStateMachine framework installs QObject event filters to catch events in order to triggers the proper transition. But installing a QObject event filter on a QGraphicsObject gives nothing because QGraphicsView events filters works differently. In order to make this works we now post events using QApplication::postEvent in addition to the QGraphicsView events. Reviewed-by:andreas
Diffstat (limited to 'src/gui/graphicsview/qgraphicswidget.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicswidget.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gui/graphicsview/qgraphicswidget.cpp b/src/gui/graphicsview/qgraphicswidget.cpp
index 224f50b..7764157 100644
--- a/src/gui/graphicsview/qgraphicswidget.cpp
+++ b/src/gui/graphicsview/qgraphicswidget.cpp
@@ -168,8 +168,6 @@ QT_BEGIN_NAMESPACE
\sa QGraphicsProxyWidget, QGraphicsItem, {Widgets and Layouts}
*/
-bool qt_sendSpontaneousEvent(QObject *receiver, QEvent *event);
-
/*!
Constructs a QGraphicsWidget instance. The optional \a parent argument is
passed to QGraphicsItem's constructor. The optional \a wFlags argument
@@ -1103,10 +1101,6 @@ QVariant QGraphicsWidget::propertyChange(const QString &propertyName, const QVar
*/
bool QGraphicsWidget::sceneEvent(QEvent *event)
{
- bool spont = event->spontaneous();
- if (spont ? qt_sendSpontaneousEvent(this, event) : QApplication::sendEvent(this, event))
- return true;
- event->spont = spont;
return QGraphicsItem::sceneEvent(event);
}