Replace calls to deprecated QEvent accessor functions

Several event accessors were deprecated in
qtbase/24e52c10deedbaef833c0e2c3ee7bee03eacc4f5.

Replacements were generated by clazy using the new qevent-accessors check:
$ export CLAZY_CHECKS=qevent-accessors
$ export CLAZY_EXPORT_FIXES=1
$ ../qt6/configure -platform linux-clang -developer-build -debug
  -no-optimize-debug -opensource -confirm-license -no-pch QMAKE_CXX=clazy
$ make
$ cd ../../qt6/qtwayland
$ find . -name "*.clazy.yaml"
$ clang-apply-replacements .

Task-number: QTBUG-20885
Task-number: QTBUG-84775
Change-Id: If822ba409f974f737dc46ac31f6e8e92cc1603cc
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
This commit is contained in:
Shawn Rutledge 2020-06-08 10:49:03 +02:00
parent a695c7fbc8
commit 2b827691dc
2 changed files with 2 additions and 2 deletions

View File

@ -270,7 +270,7 @@ void QWaylandCursor::changeCursor(QCursor *cursor, QWindow *window)
void QWaylandCursor::pointerEvent(const QMouseEvent &event)
{
mLastPos = event.globalPos();
mLastPos = event.globalPosition().toPoint();
}
QPoint QWaylandCursor::pos() const

View File

@ -81,7 +81,7 @@ public:
void mousePressEvent(QMouseEvent *event) override
{
++mousePressEventCount;
mousePressPos = event->pos();
mousePressPos = event->position().toPoint();
}
void mouseReleaseEvent(QMouseEvent *) override