diff options
author | Shawn Rutledge <shawn.rutledge@theqtcompany.com> | 2016-05-03 17:50:14 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-06-15 11:27:00 +0000 |
commit | e5ddc9b32a8691c65eb3206d4122d5ef60d414c3 (patch) | |
tree | 70971d99be79758167c493c85eb30f0108646693 /src/testlib/qtestcase.qdoc | |
parent | 71f507788baa7c4c9946788f77182ccfd9748bb6 (diff) |
doc: add docs for QTest::createTouchDevice()
Task-number: QTBUG-44030
Change-Id: I4bb6a0d0a257cf94883895baebafba70d0cf0f58
Reviewed-by: Topi Reiniƶ <topi.reinio@theqtcompany.com>
Diffstat (limited to 'src/testlib/qtestcase.qdoc')
-rw-r--r-- | src/testlib/qtestcase.qdoc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/testlib/qtestcase.qdoc b/src/testlib/qtestcase.qdoc index 9513cf0c58..8bf3b30ffb 100644 --- a/src/testlib/qtestcase.qdoc +++ b/src/testlib/qtestcase.qdoc @@ -1122,6 +1122,20 @@ */ /*! + \fn QTest::createTouchDevice() + \since 5.8 + + Creates a dummy touch device for simulation of touch events. + + The touch device will be registered with the QPA window system interface, + and deleted automatically when the QCoreApplication is deleted. So you + should typically use createTouchDevice() to initialize a QTouchDevice + member variable in your test case class, and use the same instance for all tests. + + \sa QTest::QTouchEventSequence +*/ + +/*! \class QTest::QTouchEventSequence \inmodule QtTest \since 4.6 |