Skip to content

Commit

Permalink
Fix the touch manual test to compile
Browse files Browse the repository at this point in the history
Task-number: QTBUG-72167
Change-Id: I9074fc21ae8fccf66140fb38bfbd35e526506c36
Reviewed-by: Tor Arne Vestbø <[email protected]>
  • Loading branch information
FriedemannKleint committed Jul 22, 2020
1 parent 5934237 commit a54639a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/manual/touch/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit a54639a

Please sign in to comment.