From a54639acd2fea34836246c821fafe571bd465c79 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 22 Jul 2020 11:28:21 +0200 Subject: [PATCH] Fix the touch manual test to compile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTBUG-72167 Change-Id: I9074fc21ae8fccf66140fb38bfbd35e526506c36 Reviewed-by: Tor Arne Vestbø --- tests/manual/touch/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/manual/touch/main.cpp b/tests/manual/touch/main.cpp index d56b2c14f5e..37bbbcb7f8e 100644 --- a/tests/manual/touch/main.cpp +++ b/tests/manual/touch/main.cpp @@ -440,8 +440,7 @@ MainWindow *MainWindow::createMainWindow() const QSize screenSize = QGuiApplication::primaryScreen()->availableGeometry().size(); result->resize(screenSize / 2); const QSize sizeDiff = screenSize - result->size(); - const QPoint pos = QPoint(sizeDiff.width() / 2, sizeDiff.height() / 2) - + mainWindows.size() * QPoint(30, 10); + const QPoint pos = QPoint(sizeDiff.width() / 2, sizeDiff.height() / 2); result->move(pos); result->show(); @@ -536,7 +535,7 @@ void MainWindow::dumpTouchDevices() { QString message; QDebug debug(&message); - const QList devices = QPointingDevice::devices(); + const auto devices = QPointingDevice::devices(); debug << devices.size() << "Device(s):\n"; for (int i = 0; i < devices.size(); ++i) debug << "Device #" << i << devices.at(i) << '\n';