diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-09-25 10:47:42 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-10-02 23:59:54 +0200 |
commit | e9f63420c1a9fbc92f2f2fdd1f3c4bb80be7bd63 (patch) | |
tree | d8cccd59ce7c367f8e34323db6c795fd003cb5d3 /src/quicktemplates2/qquickswitchdelegate.cpp | |
parent | b3da902d309403bc3bd437bb94ea98ef02a53151 (diff) |
Fix compile warnings: replace QTouchEvent::touchPoints with points
QTouchEvent::touchPoints() is deprecated in qtbase as of
2692237bb1b0c0f50b7cc5d920eb8ab065063d47, and replaced with
QPointerEvent::points().
Change-Id: Ibe5722cf12526f47436921dcef8d3ed7e73cf4cd
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickswitchdelegate.cpp')
-rw-r--r-- | src/quicktemplates2/qquickswitchdelegate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickswitchdelegate.cpp b/src/quicktemplates2/qquickswitchdelegate.cpp index 2e19641274..8604135443 100644 --- a/src/quicktemplates2/qquickswitchdelegate.cpp +++ b/src/quicktemplates2/qquickswitchdelegate.cpp @@ -189,7 +189,7 @@ void QQuickSwitchDelegate::touchEvent(QTouchEvent *event) { Q_D(QQuickSwitchDelegate); if (!keepTouchGrab() && event->type() == QEvent::TouchUpdate) { - for (const QTouchEvent::TouchPoint &point : event->touchPoints()) { + for (const QTouchEvent::TouchPoint &point : event->points()) { if (point.id() != d->touchId || point.state() != QEventPoint::Updated) continue; if (d->canDrag(point.position())) |