summaryrefslogtreecommitdiffstats
path: root/src/testlib
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@theqtcompany.com>2016-05-02 10:46:53 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2016-06-10 13:08:00 +0000
commit04e224b19ab04ff4d5e0b3fa70c2669ab2656037 (patch)
tree552d2bfb7e92c8678fe4b0abd1cc129b2c55ba4b /src/testlib
parent982b70d37db337b2c57a3cfce0f24c3d00a598d6 (diff)
add QTest::createTouchDevice()
This enables creation of autotests which use touch events, without using private API. Task-number: QTBUG-44030 Change-Id: If8fe89f8423aaafd9e6501e231c33580b9365eb8 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src/testlib')
-rw-r--r--src/testlib/qtesttouch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testlib/qtesttouch.h b/src/testlib/qtesttouch.h
index bdc964389e..11aa14c268 100644
--- a/src/testlib/qtesttouch.h
+++ b/src/testlib/qtesttouch.h
@@ -65,6 +65,7 @@ Q_GUI_EXPORT void qt_handleTouchEvent(QWindow *w, QTouchDevice *device,
namespace QTest
{
+ Q_GUI_EXPORT QTouchDevice * createTouchDevice(QTouchDevice::DeviceType devType = QTouchDevice::TouchScreen);
class QTouchEventSequence
{