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(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);