diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-22 11:28:21 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-22 12:20:16 +0200 |
commit | a54639acd2fea34836246c821fafe571bd465c79 (patch) | |
tree | 0c2546da85ade2c7f0fe5d7b22781b6772e5dd59 /tests/manual/touch | |
parent | 59342379bde1be36b5c42cc8019c598138a0b534 (diff) |
Fix the touch manual test to compile
Task-number: QTBUG-72167
Change-Id: I9074fc21ae8fccf66140fb38bfbd35e526506c36
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/manual/touch')
-rw-r--r-- | tests/manual/touch/main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/manual/touch/main.cpp b/tests/manual/touch/main.cpp index d56b2c14f5..37bbbcb7f8 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<const QPointingDevice *> 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'; |