From 01ff216c82fd33664a1d7c1d89e58a24e38b3000 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Wed, 26 May 2021 11:30:18 +0200 Subject: [PATCH] tests: update startsystemmove manual test with latest api MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib9a070f7878fa67b7db1e26c8ebbbb54873cb645 Reviewed-by: Tor Arne Vestbø --- tests/manual/startsystemmove/main.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/manual/startsystemmove/main.cpp b/tests/manual/startsystemmove/main.cpp index a121d1ed86e..ea0c0d98f39 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(event)->localPos()); + resizeOrMove(static_cast(event)->position()); return true; case QEvent::TouchUpdate: qDebug() << "Touch update"; - resizeOrMove(static_cast(event)->touchPoints().first().pos()); + resizeOrMove(static_cast(event)->points().first().position()); return true; case QEvent::TouchBegin: qDebug() << "Touch begin"; - resizeOrMove(static_cast(event)->touchPoints().first().pos()); + resizeOrMove(static_cast(event)->points().first().position()); + return true; + case QEvent::TouchEnd: + qDebug() << "Touch end"; return true; default: return QRasterWindow::event(event);