diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-10-28 19:29:13 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-10-29 07:13:34 +0100 |
commit | 5866b82e240915b9b8d2be7394af560877111ee3 (patch) | |
tree | b167a8fe0db4eb4c0b2b89bcd00206a9a8e6e9d5 /src | |
parent | a332f3fabc29f796526202648eddf35a24f1cb67 (diff) |
Fix documentation for QTest touch APIs
Change-Id: Ifd9a3161e8ee422f8b0ce3adba8ae1b029c096d1
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/testlib/qtestcase.qdoc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/testlib/qtestcase.qdoc b/src/testlib/qtestcase.qdoc index 8c89b37baf..14a165e55f 100644 --- a/src/testlib/qtestcase.qdoc +++ b/src/testlib/qtestcase.qdoc @@ -1257,7 +1257,7 @@ */ /*! - \fn QPointingDevice *QTest::createTouchDevice(QInputDevice::DeviceType devType = QInputDevice::DeviceType::TouchScreen) + \fn QPointingDevice * createTouchDevice(QInputDevice::DeviceType devType = QInputDevice::DeviceType::TouchScreen, QInputDevice::Capabilities caps = QInputDevice::Capability::Position) \since 5.8 Creates a dummy touch device of type \a devType for simulation of touch events. @@ -1318,13 +1318,13 @@ */ /*! - \fn QTouchEventSequence &QTest::QTouchEventSequence::press(int touchId, const QPoint &pt, QWidget *widget) + \fn QTouchEventWidgetSequence &QTest::QTouchEventWidgetSequence::press(int touchId, const QPoint &pt, QWidget *widget) Adds a press event for touchpoint \a touchId at position \a pt to this sequence and returns - a reference to this QTouchEventSequence. + a reference to this QTouchEventWidgetSequence. The position \a pt is interpreted as relative to \a widget. If \a widget is the null pointer, then - \a pt is interpreted as relative to the widget provided when instantiating this QTouchEventSequence. + \a pt is interpreted as relative to the widget provided when instantiating this QTouchEventWidgetSequence. Simulates that the user pressed the touch screen or pad with the finger identified by \a touchId. */ @@ -1343,13 +1343,13 @@ */ /*! - \fn QTouchEventSequence &QTest::QTouchEventSequence::move(int touchId, const QPoint &pt, QWidget *widget) + \fn QTouchEventWidgetSequence &QTest::QTouchEventWidgetSequence::move(int touchId, const QPoint &pt, QWidget *widget) Adds a move event for touchpoint \a touchId at position \a pt to this sequence and returns - a reference to this QTouchEventSequence. + a reference to this QTouchEventWidgetSequence. The position \a pt is interpreted as relative to \a widget. If \a widget is the null pointer, then - \a pt is interpreted as relative to the widget provided when instantiating this QTouchEventSequence. + \a pt is interpreted as relative to the widget provided when instantiating this QTouchEventWidgetSequence. Simulates that the user moved the finger identified by \a touchId. */ @@ -1368,13 +1368,13 @@ */ /*! - \fn QTouchEventSequence &QTest::QTouchEventSequence::release(int touchId, const QPoint &pt, QWidget *widget) + \fn QTouchEventWidgetSequence &QTest::QTouchEventWidgetSequence::release(int touchId, const QPoint &pt, QWidget *widget) Adds a release event for touchpoint \a touchId at position \a pt to this sequence and returns - a reference to this QTouchEventSequence. + a reference to this QTouchEventWidgetSequence. The position \a pt is interpreted as relative to \a widget. If \a widget is the null pointer, then - \a pt is interpreted as relative to the widget provided when instantiating this QTouchEventSequence. + \a pt is interpreted as relative to the widget provided when instantiating this QTouchEventWidgetSequence. Simulates that the user lifted the finger identified by \a touchId. */ |