aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qquickpopup
diff options
context:
space:
mode:
authorQt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>2020-06-25 14:45:57 +0300
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-06-25 21:33:50 +0200
commitb60c02ce7d2d34eae63c78f77c0e59c09dda2212 (patch)
treeb8b0250bfadd255f8d3dd98bfe2b1be6a9b9f6d2 /tests/auto/qquickpopup
parent6b9b53a84e92f0bac1ceebfaff7cbffa203430bd (diff)
Update dependencies on 'dev' in qt/qtquickcontrols2
Change-Id: I1f6bf96f30f5dcea4d9838b0638f9412309a069e Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'tests/auto/qquickpopup')
-rw-r--r--tests/auto/qquickpopup/tst_qquickpopup.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/tests/auto/qquickpopup/tst_qquickpopup.cpp b/tests/auto/qquickpopup/tst_qquickpopup.cpp
index 184d8ad8..30a21b9f 100644
--- a/tests/auto/qquickpopup/tst_qquickpopup.cpp
+++ b/tests/auto/qquickpopup/tst_qquickpopup.cpp
@@ -303,18 +303,7 @@ void tst_QQuickPopup::overlay()
QVERIFY(popup->isVisible());
QVERIFY(overlay->isVisible());
- struct TouchDeviceDeleter
- {
- static inline void cleanup(QTouchDevice *device)
- {
- QWindowSystemInterface::unregisterTouchDevice(device);
- delete device;
- }
- };
-
- QScopedPointer<QTouchDevice, TouchDeviceDeleter> device(new QTouchDevice);
- device->setType(QTouchDevice::TouchScreen);
- QWindowSystemInterface::registerTouchDevice(device.data());
+ QScopedPointer<QPointingDevice> device(QTest::createTouchDevice());
QTest::touchEvent(window, device.data()).press(0, QPoint(1, 1));
QCOMPARE(overlayPressedSignal.count(), ++overlayPressCount);