diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-03-01 20:25:51 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-03-01 22:26:07 +0100 |
commit | 0b6e5504afc05bb3dbb16275efb0faaa50abc412 (patch) | |
tree | 6179b25dfc28e32350353fa6f49cfdff394d8fb5 /tests/auto/qquickpopup | |
parent | a0d73125882a7a937d0d13348c8657ba81d50080 (diff) |
tests: Do not delete device prematurely
The delivery agent expects the device to live longer than itself.
Pick-to: 6.1
Change-Id: I3c837633f2c4a91f5b370df4d486a01b2ee05f13
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/qquickpopup')
-rw-r--r-- | tests/auto/qquickpopup/tst_qquickpopup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qquickpopup/tst_qquickpopup.cpp b/tests/auto/qquickpopup/tst_qquickpopup.cpp index c02b47fc..442b99fa 100644 --- a/tests/auto/qquickpopup/tst_qquickpopup.cpp +++ b/tests/auto/qquickpopup/tst_qquickpopup.cpp @@ -215,6 +215,7 @@ void tst_QQuickPopup::overlay() QFETCH(bool, modal); QFETCH(bool, dim); + QScopedPointer<QPointingDevice> device(QTest::createTouchDevice()); QQuickApplicationHelper helper(this, source); QVERIFY2(helper.ready, helper.failureMessage()); @@ -305,7 +306,6 @@ void tst_QQuickPopup::overlay() QVERIFY(popup->isVisible()); QVERIFY(overlay->isVisible()); - QScopedPointer<QPointingDevice> device(QTest::createTouchDevice()); QTest::touchEvent(window, device.data()).press(0, QPoint(1, 1)); QCOMPARE(overlayPressedSignal.count(), ++overlayPressCount); |