Port the last user of QMutableSinglePointEvent::mutableEvent()

... to the static setters of QMutableEventPoint.

Remove the mutableEvent() function.

Task-number: QTBUG-99615
Pick-to: 6.3
Change-Id: If4d3decae67baff41e23e7e9eaed3f3035fab595
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
bb10
Marc Mutz 2022-01-06 23:05:34 +01:00
parent c3c57cb968
commit fc738e3f51
2 changed files with 1 additions and 3 deletions

View File

@ -93,8 +93,6 @@ public:
static QMutableSinglePointEvent &from(QSinglePointEvent &e) { return static_cast<QMutableSinglePointEvent &>(e); }
QMutableEventPoint &mutablePoint() { return QMutableEventPoint::from(point(0)); }
void setSource(Qt::MouseEventSource s) { m_source = s; }
bool isDoubleClick() { return m_doubleClick; }

View File

@ -2947,7 +2947,7 @@ bool QApplication::notify(QObject *receiver, QEvent *e)
if (w->isWindow() || w->testAttribute(Qt::WA_NoMousePropagation))
break;
QMutableSinglePointEvent::from(we).mutablePoint().setPosition(we.position() + w->pos());
QMutableEventPoint::setPosition(we.point(0), we.position() + w->pos());
w = w->parentWidget();
} while (w);
wheel->setAccepted(eventAccepted);