diff options
author | Liang Qi <liang.qi@qt.io> | 2021-05-26 11:30:18 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2021-06-16 15:53:22 +0200 |
commit | 01ff216c82fd33664a1d7c1d89e58a24e38b3000 (patch) | |
tree | 709fdbc2372c201b3c2f2b49f9060d04422a4685 /tests | |
parent | 50a4b97d3160d45a5dcadc68d08f04b2e9efa16d (diff) |
tests: update startsystemmove manual test with latest api
Change-Id: Ib9a070f7878fa67b7db1e26c8ebbbb54873cb645
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/startsystemmove/main.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/manual/startsystemmove/main.cpp b/tests/manual/startsystemmove/main.cpp index a121d1ed86..ea0c0d98f3 100644 --- a/tests/manual/startsystemmove/main.cpp +++ b/tests/manual/startsystemmove/main.cpp @@ -76,15 +76,18 @@ bool Window::event(QEvent *event) switch (event->type()) { case QEvent::MouseButtonPress: qDebug() << "Mouse press"; - resizeOrMove(static_cast<QMouseEvent *>(event)->localPos()); + resizeOrMove(static_cast<QMouseEvent *>(event)->position()); return true; case QEvent::TouchUpdate: qDebug() << "Touch update"; - resizeOrMove(static_cast<QTouchEvent *>(event)->touchPoints().first().pos()); + resizeOrMove(static_cast<QTouchEvent *>(event)->points().first().position()); return true; case QEvent::TouchBegin: qDebug() << "Touch begin"; - resizeOrMove(static_cast<QTouchEvent *>(event)->touchPoints().first().pos()); + resizeOrMove(static_cast<QTouchEvent *>(event)->points().first().position()); + return true; + case QEvent::TouchEnd: + qDebug() << "Touch end"; return true; default: return QRasterWindow::event(event); |