diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-06-08 09:21:58 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-06-11 22:00:19 +0200 |
commit | 212c2bffbb041aee0e3c9a7f0551ef151ed2d3ad (patch) | |
tree | a9e5265252c2ccfead34d4e42fe8149358bff0f1 /tests/auto/quick/qquickitem/tst_qquickitem.cpp | |
parent | 974c8da34d79cd8fc417ff5d69bc00c1e910e5ac (diff) |
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/qtdeclarative
$ find . -name "*.clazy.yaml"
$ clang-apply-replacements .
Task-number: QTBUG-20885
Task-number: QTBUG-84775
Change-Id: I1be5819506fd5039e86b4494223acbe193e6b0c9
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickitem/tst_qquickitem.cpp')
-rw-r--r-- | tests/auto/quick/qquickitem/tst_qquickitem.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/quick/qquickitem/tst_qquickitem.cpp b/tests/auto/quick/qquickitem/tst_qquickitem.cpp index abb5142304..77f183ad2a 100644 --- a/tests/auto/quick/qquickitem/tst_qquickitem.cpp +++ b/tests/auto/quick/qquickitem/tst_qquickitem.cpp @@ -1349,7 +1349,7 @@ void tst_qquickitem::touchEventAcceptIgnore() QTouchEvent::TouchPoint point; point.setId(1); point.setPos(QPointF(50, 50)); - point.setScreenPos(point.pos()); + point.setScreenPos(point.position()); point.setState(Qt::TouchPointPressed); QTouchEvent event(QEvent::TouchBegin, device, @@ -1373,7 +1373,7 @@ void tst_qquickitem::touchEventAcceptIgnore() QTouchEvent::TouchPoint point; point.setId(1); point.setPos(QPointF(60, 60)); - point.setScreenPos(point.pos()); + point.setScreenPos(point.position()); point.setState(Qt::TouchPointMoved); QTouchEvent event(QEvent::TouchUpdate, device, @@ -1397,7 +1397,7 @@ void tst_qquickitem::touchEventAcceptIgnore() QTouchEvent::TouchPoint point; point.setId(1); point.setPos(QPointF(60, 60)); - point.setScreenPos(point.pos()); + point.setScreenPos(point.position()); point.setState(Qt::TouchPointReleased); QTouchEvent event(QEvent::TouchEnd, device, |