tests: update startsystemmove manual test with latest api

Change-Id: Ib9a070f7878fa67b7db1e26c8ebbbb54873cb645
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Liang Qi 2021-05-26 11:30:18 +02:00
parent 50a4b97d31
commit 01ff216c82

View File

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