summaryrefslogtreecommitdiff
path: root/src/widgets/statemachine
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2014-06-24 14:06:18 +0200
committerFriedemann Kleint <Friedemann.Kleint@digia.com>2014-06-25 16:31:10 +0200
commitbae7435f61e68711b6b8ce056957a146dc1a335e (patch)
treef1d4ee85e0c04643692877b4a43833e5e3636b4d /src/widgets/statemachine
parent4696e9dbaa4fc8bf3c7eeed9aceaba5da480acaf (diff)
downloadqtbase-bae7435f61e68711b6b8ce056957a146dc1a335e.tar.gz
Propagate source/flags of QMouseEvent to QGraphicsSceneMouseEvent.
It is useful to be able to detect synthesized mouse events in GraphicsView as well. [ChangeLog][QtWidgets][QGraphicsSceneMouseEvent] Accessors for Qt::MouseEventSource and Qt::MouseEventFlags were added to QGraphicsSceneMouseEvent to enable detection of synthesized mouse events. Task-number: QTBUG-39814 Change-Id: Ib5835fef1f484005f9b0fc86518ed32ea79cd80f Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/widgets/statemachine')
-rw-r--r--src/widgets/statemachine/qguistatemachine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/statemachine/qguistatemachine.cpp b/src/widgets/statemachine/qguistatemachine.cpp
index d737a1e323..9824b96334 100644
--- a/src/widgets/statemachine/qguistatemachine.cpp
+++ b/src/widgets/statemachine/qguistatemachine.cpp
@@ -312,6 +312,8 @@ static QEvent *cloneEvent(QEvent *e)
me2->setButtons(me->buttons());
me2->setButton(me->button());
me2->setModifiers(me->modifiers());
+ me2->setSource(me->source());
+ me2->setFlags(me->flags());
return me2;
}