diff options
author | Szabolcs David <[email protected]> | 2023-03-08 15:04:07 +0100 |
---|---|---|
committer | Szabolcs David <[email protected]> | 2023-04-05 10:50:54 +0000 |
commit | 1fe0003d727bdacd30c552f01000c434971ad3ca (patch) | |
tree | 9bb8e594214e02c8230cea07387d47850bee9505 /src/touchtracker.cpp | |
parent | a09ec269e8b296d39d78b45ae251edb3d7bada41 (diff) |
Also fix an old issue: tab view now presents preview images.
Change-Id: I47eb48b626e62e53e130734c92cc7ec8ed9ecb66
Reviewed-by: Michal Klocek <[email protected]>
Diffstat (limited to 'src/touchtracker.cpp')
-rw-r--r-- | src/touchtracker.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/touchtracker.cpp b/src/touchtracker.cpp index bd0f132..582ccb4 100644 --- a/src/touchtracker.cpp +++ b/src/touchtracker.cpp @@ -107,9 +107,9 @@ bool TouchTracker::eventFilter(QObject *obj, QEvent *event) return QQuickItem::eventFilter(obj, event); const QTouchEvent *touch = static_cast<QTouchEvent*>(event); - const QList<QTouchEvent::TouchPoint> &points = touch->touchPoints(); + const QList<QEventPoint> &points = touch->points(); m_previousY = m_currentPoint.y(); - m_currentPoint.pos = m_target->mapToScene(points.at(0).pos()); + m_currentPoint.pos = m_target->mapToScene(points.at(0).position()); m_currentPoint.ts = QDateTime::currentMSecsSinceEpoch(); int currentDiff = m_previousY - m_currentPoint.y(); @@ -138,8 +138,8 @@ void TouchTracker::touchEvent(QTouchEvent * event) event->setAccepted(false); - const QList<QTouchEvent::TouchPoint> &points = event->touchPoints(); - m_currentPoint.pos = m_target->mapToScene(points.at(0).pos()); + const QList<QEventPoint> &points = event->points(); + m_currentPoint.pos = m_target->mapToScene(points.at(0).position()); m_currentPoint.ts = QDateTime::currentMSecsSinceEpoch(); if (event->type() == QEvent::TouchBegin) { |