summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2023-08-18 16:14:02 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-08-21 20:03:50 +0000
commit38ff9a2d64bab74b1e6a3000ccc412a745c05ba7 (patch)
tree6fa999fc2fa2105ec64de3e7c689c765530138ff /src
parent60dd353e7ecdf70a0c85e081c365f505fdcaee9e (diff)
Port away from QTouchEvent::touchPoints()
This API was deprecated in Qt 6.0. Use QPointerEvent::points() instead. Change-Id: I04140ef4f45399c781b1ea5c479b97138237ac49 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit ca737030c634285e2758c5baca1d8c1c386766e7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/core/render_widget_host_view_qt_delegate_client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/render_widget_host_view_qt_delegate_client.cpp b/src/core/render_widget_host_view_qt_delegate_client.cpp
index ce31772b3..b10fb38cc 100644
--- a/src/core/render_widget_host_view_qt_delegate_client.cpp
+++ b/src/core/render_widget_host_view_qt_delegate_client.cpp
@@ -526,7 +526,7 @@ void RenderWidgetHostViewQtDelegateClient::handleTouchEvent(QTouchEvent *event)
m_eventsToNowDelta = (base::TimeTicks::Now() - eventTimestamp).InMicroseconds();
eventTimestamp += base::Microseconds(m_eventsToNowDelta);
- auto touchPoints = mapTouchPointIds(event->touchPoints());
+ auto touchPoints = mapTouchPointIds(event->points());
// Make sure that POINTER_DOWN action is delivered before MOVE, and MOVE before POINTER_UP
std::sort(touchPoints.begin(), touchPoints.end(), [] (const TouchPoint &l, const TouchPoint &r) {
return l.second.state() < r.second.state();