summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2014-09-17 16:18:02 +0400
committerAlexander Volkov <a.volkov@rusbitech.ru>2014-09-19 23:31:22 +0200
commitba46c0eef5aee5063e7bfc294b044c4a79233f1d (patch)
treea470fb2f0a3fafbbcd9fdb3f675b4c6bd3958dec /src/gui/kernel
parentb08b536f200738ef4707cd61c399be224da930c1 (diff)
Set a missing source for mouse events synthesized by Qt
Mouse events synthesized from touch events by Qt should be marked as Qt::MouseEventSynthesizedByQt. Change-Id: I73612621a0248440b3b773f1280395c05c55e4aa Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qguiapplication.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp
index 7dcadf74a8..70b48ad9ee 100644
--- a/src/gui/kernel/qguiapplication.cpp
+++ b/src/gui/kernel/qguiapplication.cpp
@@ -2475,7 +2475,8 @@ void QGuiApplicationPrivate::processTouchEvent(QWindowSystemInterfacePrivate::To
touchPoint.pos(),
touchPoint.screenPos(),
b | (buttons & ~Qt::LeftButton),
- e->modifiers);
+ e->modifiers,
+ Qt::MouseEventSynthesizedByQt);
fake.synthetic = true;
processMouseEvent(&fake);
break;