diff options
Diffstat (limited to 'tests/auto/other/gestures')
-rw-r--r-- | tests/auto/other/gestures/gestures.pro | 2 | ||||
-rw-r--r-- | tests/auto/other/gestures/tst_gestures.cpp | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/tests/auto/other/gestures/gestures.pro b/tests/auto/other/gestures/gestures.pro index 3d0ef7c745..0ec0435f62 100644 --- a/tests/auto/other/gestures/gestures.pro +++ b/tests/auto/other/gestures/gestures.pro @@ -1,4 +1,4 @@ CONFIG += testcase TARGET = tst_gestures -QT += widgets testlib gui-private +QT += widgets testlib SOURCES += tst_gestures.cpp diff --git a/tests/auto/other/gestures/tst_gestures.cpp b/tests/auto/other/gestures/tst_gestures.cpp index 59b285b032..d153146574 100644 --- a/tests/auto/other/gestures/tst_gestures.cpp +++ b/tests/auto/other/gestures/tst_gestures.cpp @@ -40,7 +40,6 @@ #include <qgraphicswidget.h> #include <qgraphicsview.h> #include <qmainwindow.h> -#include <qpa/qwindowsysteminterface.h> #include <qdebug.h> @@ -2318,9 +2317,7 @@ void tst_Gestures::bug_13501_gesture_not_accepted() w.show(); QVERIFY(waitForWindowExposed(&w)); //QTest::mousePress(&ignoreEvent, Qt::LeftButton); - QTouchDevice *device = new QTouchDevice; - device->setType(QTouchDevice::TouchScreen); - QWindowSystemInterface::registerTouchDevice(device); + QTouchDevice *device = QTest::createTouchDevice(); QTest::touchEvent(&w, device).press(0, QPoint(10, 10), &w); } |