aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/util/qquickdeliveryagent.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-01-06 16:22:22 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-01-07 06:01:58 +0000
commit8e737fc34f4d7bb17eb669869608611f1383b0dd (patch)
treec929aa792ab72059dbff8398f7672535587bd97a /src/quick/util/qquickdeliveryagent.cpp
parent74d3d9118966cce53f498a74e2176ccafa6273f0 (diff)
QQuickDeliveryAgent: remove unneeded QMutableEventPoint::from()
No (QMutableEventPoint-only) setters are called on 'point'. Task-number: QTBUG-99615 Change-Id: I7282bfeacae8ab568f7da9357498546f60d1a109 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 6f121aded053069676084e20c9ad48734b89449a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/quick/util/qquickdeliveryagent.cpp')
-rw-r--r--src/quick/util/qquickdeliveryagent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/util/qquickdeliveryagent.cpp b/src/quick/util/qquickdeliveryagent.cpp
index 5eebcfecc1..9231d6eba1 100644
--- a/src/quick/util/qquickdeliveryagent.cpp
+++ b/src/quick/util/qquickdeliveryagent.cpp
@@ -2042,7 +2042,7 @@ void QQuickDeliveryAgentPrivate::deliverMatchingPointsToItem(QQuickItem *item, b
// update accepted new points.
bool isPressOrRelease = pointerEvent->isBeginEvent() || pointerEvent->isEndEvent();
for (int i = 0; i < touchEvent.pointCount(); ++i) {
- auto &point = QMutableEventPoint::from(touchEvent.point(i));
+ auto &point = touchEvent.point(i);
// legacy-style delivery: if the item doesn't reject the event, that means it handled ALL the points
point.setAccepted();
// but don't let the root of a subscene implicitly steal the grab from some other item (such as one of its children)