From ba46c0eef5aee5063e7bfc294b044c4a79233f1d Mon Sep 17 00:00:00 2001 From: Alexander Volkov Date: Wed, 17 Sep 2014 16:18:02 +0400 Subject: [PATCH] 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 --- src/gui/kernel/qguiapplication.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;