diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-08-05 15:54:02 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-09-02 20:56:36 +0200 |
commit | 7f36556603f7ea6d3a15625c9057ea875a6b6f41 (patch) | |
tree | 894ecf66badcfeb5ced7d7499602fc7fe686588a /tests/auto/qquickdrawer/tst_qquickdrawer.cpp | |
parent | 305c3cbfe3db51225ba30249cd70ed26a6c70c58 (diff) |
Remove usages of deprecated APIs of QWheelEvent
Task-number: QTBUG-76491
Change-Id: I346ddb1e926047878ce57c88cea24d8a4689adaa
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/qquickdrawer/tst_qquickdrawer.cpp')
-rw-r--r-- | tests/auto/qquickdrawer/tst_qquickdrawer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qquickdrawer/tst_qquickdrawer.cpp b/tests/auto/qquickdrawer/tst_qquickdrawer.cpp index 816f9b67..97472a11 100644 --- a/tests/auto/qquickdrawer/tst_qquickdrawer.cpp +++ b/tests/auto/qquickdrawer/tst_qquickdrawer.cpp @@ -613,7 +613,9 @@ void tst_QQuickDrawer::wheel_data() static bool sendWheelEvent(QQuickItem *item, const QPoint &localPos, int degrees) { QQuickWindow *window = item->window(); - QWheelEvent wheelEvent(localPos, item->window()->mapToGlobal(localPos), QPoint(0, 0), QPoint(0, 8 * degrees), 0, Qt::Vertical, Qt::NoButton, 0); + QWheelEvent wheelEvent(localPos, item->window()->mapToGlobal(localPos), QPoint(0, 0), + QPoint(0, 8 * degrees), Qt::NoButton, Qt::NoModifier, Qt::NoScrollPhase, + false); QSpontaneKeyEvent::setSpontaneous(&wheelEvent); return qGuiApp->notify(window, &wheelEvent); } |