summaryrefslogtreecommitdiffstats
path: root/src/core/render_widget_host_view_qt_delegate_client.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-12-11 10:55:18 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-12-11 15:52:24 +0100
commit91696b2cb090e5b6147a30465f74d8d37db48615 (patch)
treee73d4adee4f9f2040e8986b8388737d3bf866a5d /src/core/render_widget_host_view_qt_delegate_client.h
parent1b79f9ccffe468107be5f6c5d3ad42cdcfdef585 (diff)
parentdad48eb41d1b4b4b32c73884a1c29dd6d9408c33 (diff)
Merge remote-tracking branch 'origin/5.15' into dev
Diffstat (limited to 'src/core/render_widget_host_view_qt_delegate_client.h')
-rw-r--r--src/core/render_widget_host_view_qt_delegate_client.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/render_widget_host_view_qt_delegate_client.h b/src/core/render_widget_host_view_qt_delegate_client.h
index c338df95e..4ba5da227 100644
--- a/src/core/render_widget_host_view_qt_delegate_client.h
+++ b/src/core/render_widget_host_view_qt_delegate_client.h
@@ -140,9 +140,13 @@ private:
std::string m_editCommand;
// Touch
- QList<QTouchEvent::TouchPoint> m_previousTouchPoints;
+ typedef QPair<int, QTouchEvent::TouchPoint> TouchPoint;
+ QList<TouchPoint> mapTouchPointIds(const QList<QTouchEvent::TouchPoint> &input);
+ QMap<int, int> m_touchIdMapping;
+ QList<TouchPoint> m_previousTouchPoints;
bool m_touchMotionStarted = false;
bool m_sendMotionActionDown = false;
+ int64_t m_eventsToNowDelta = 0; // delta for first touch in microseconds
// IME
bool m_receivedEmptyImeEvent = false;