~ubuntu-branches/ubuntu/saucy/kde-runtime/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/patches/0001-fix-identical-events-ignored-bug.diff

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-09-30 14:04:51 UTC
  • mfrom: (1.1.34)
  • Revision ID: package-import@ubuntu.com-20130930140451-0fojip8hke9s7640
Tags: 4:4.11.2-0ubuntu1
New upstream bugfix release

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
11
 
---
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)
19
 
 {
20
 
     if (m_lastEvent == me) {
21
 
+        m_lastEvent = 0;
22
 
         return;
23
 
     }
24
 
 
25
 
@@ -112,6 +113,7 @@ void MouseEventListener::mousePressEvent(QGraphicsSceneMouseEvent *me)
26
 
 void MouseEventListener::mouseMoveEvent(QGraphicsSceneMouseEvent *me)
27
 
 {
28
 
     if (m_lastEvent == me) {
29
 
+        m_lastEvent = 0;
30
 
         return;
31
 
     }
32
 
 
33
 
@@ -122,6 +124,7 @@ void MouseEventListener::mouseMoveEvent(QGraphicsSceneMouseEvent *me)
34
 
 void MouseEventListener::mouseReleaseEvent(QGraphicsSceneMouseEvent *me)
35
 
 {
36
 
     if (m_lastEvent == me) {
37
 
+        m_lastEvent = 0;
38
 
         return;
39
 
     }
40
 
 
41
 
@@ -138,6 +141,7 @@ void MouseEventListener::mouseReleaseEvent(QGraphicsSceneMouseEvent *me)
42
 
 void MouseEventListener::wheelEvent(QGraphicsSceneWheelEvent *we)
43
 
 {
44
 
     if (m_lastEvent == we) {
45
 
+        m_lastEvent = 0;
46
 
         return;
47
 
     }
48