1
Description: Discard recorded events in the item-local handlers.
2
Discard the recorded events in the item-local handlers.
3
Solves problems with identical events being ignored due to
4
QGraphicsView's reuse of QGraphicsSceneMouseEvent instances.
5
Author: Eike Hein <hein@kde.org>
6
Origin: upstream, https://projects.kde.org/projects/kde/kde-runtime/repository/revisions/be1a5d484c70f4f6a383150810afbfbb367db2ac
7
Bug: https://bugs.kde.org/show_bug.cgi?id=324470
8
Applied-Upstream: be1a5d484c70f4f6a383150810afbfbb367db2ac
9
Reviewed-by: Howard Chan <smartboyhw@gmail.com>
10
Last-Update: 2013-09-07
12
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
13
diff --git a/plasma/declarativeimports/qtextracomponents/mouseeventlistener.cpp b/plasma/declarativeimports/qtextracomponents/mouseeventlistener.cpp
14
index b534845..36530e0 100644
15
--- a/plasma/declarativeimports/qtextracomponents/mouseeventlistener.cpp
16
+++ b/plasma/declarativeimports/qtextracomponents/mouseeventlistener.cpp
17
@@ -90,6 +90,7 @@ bool MouseEventListener::containsMouse() const
18
void MouseEventListener::mousePressEvent(QGraphicsSceneMouseEvent *me)
20
if (m_lastEvent == me) {
25
@@ -112,6 +113,7 @@ void MouseEventListener::mousePressEvent(QGraphicsSceneMouseEvent *me)
26
void MouseEventListener::mouseMoveEvent(QGraphicsSceneMouseEvent *me)
28
if (m_lastEvent == me) {
33
@@ -122,6 +124,7 @@ void MouseEventListener::mouseMoveEvent(QGraphicsSceneMouseEvent *me)
34
void MouseEventListener::mouseReleaseEvent(QGraphicsSceneMouseEvent *me)
36
if (m_lastEvent == me) {
41
@@ -138,6 +141,7 @@ void MouseEventListener::mouseReleaseEvent(QGraphicsSceneMouseEvent *me)
42
void MouseEventListener::wheelEvent(QGraphicsSceneWheelEvent *we)
44
if (m_lastEvent == we) {