Fix the touch manual test to compile
Task-number: QTBUG-72167 Change-Id: I9074fc21ae8fccf66140fb38bfbd35e526506c36 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
59342379bd
commit
a54639acd2
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user