tst_qtouchevent: remove two QMutableEventPoint::from() uses

The input is already a QMutableEventPoint.

Task-number: QTBUG-99615
Pick-to: 6.2 6.3
Change-Id: I82b3e83ffa5b87c9a562cb3bb1d7bad0a0cd5245
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
This commit is contained in:
Marc Mutz 2022-01-06 15:54:11 +01:00
parent d2055fcee5
commit 521fea9169

View File

@ -1174,10 +1174,10 @@ void tst_QTouchEvent::multiPointRawEventTranslationOnTouchPad()
// generate TouchBegin on leftWidget only
{
QMutableEventPoint &tp0 = QMutableEventPoint::from(rawTouchPoints[0]);
QMutableEventPoint &tp0 = rawTouchPoints[0];
tp0.setState(QEventPoint::State::Pressed);
tp0.setGlobalPosition(leftScreenPos);
QMutableEventPoint & tp1 = QMutableEventPoint::from(rawTouchPoints[1]);
QMutableEventPoint & tp1 = rawTouchPoints[1];
tp1.setState(QEventPoint::State::Pressed);
tp1.setGlobalPosition(rightScreenPos);
}