QGuiApplication: remove an unneeded const_cast
QPointingDevicePrivate::pointById() already returns (mutable) EventPointData*, so the eventPoint member is mutable, too. Task-number: QTBUG-99615 Pick-to: 6.3 6.2 Change-Id: Iae1e665cab4b83b63e0e693bf7c4689e99aa3bae Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
6076c9fa13
commit
d0bcbbebc3
@ -2851,7 +2851,7 @@ void QGuiApplicationPrivate::processTouchEvent(QWindowSystemInterfacePrivate::To
|
||||
for (auto &tempPt : e->points) {
|
||||
// update state
|
||||
auto epd = devPriv->pointById(tempPt.id());
|
||||
auto &mut = QMutableEventPoint::from(const_cast<QEventPoint &>(epd->eventPoint));
|
||||
auto &mut = QMutableEventPoint::from(epd->eventPoint);
|
||||
epd->eventPoint.setAccepted(false);
|
||||
switch (tempPt.state()) {
|
||||
case QEventPoint::State::Pressed:
|
||||
|
Loading…
Reference in New Issue
Block a user