aboutsummaryrefslogtreecommitdiffstats
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 00:17:46 +0000
commitd923d5d2cbe19dc7b5a10fc5beae559a93d78f8e (patch)
treef76bfcf5e582b174f834db951239ec39f940e20a
parenta3484ba93997cbf63acb0fc7636b5e888bff65ba (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>
-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 6c0596c4b3..81a1caf728 100644
--- a/src/quick/util/qquickdeliveryagent.cpp
+++ b/src/quick/util/qquickdeliveryagent.cpp
@@ -2037,7 +2037,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)