Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qtestsupport_widgets.h>
Public Member Functions | |
~QTouchEventWidgetSequence () override | |
QTouchEventWidgetSequence & | press (int touchId, const QPoint &pt, QWidget *widget=nullptr) |
QTouchEventWidgetSequence & | move (int touchId, const QPoint &pt, QWidget *widget=nullptr) |
QTouchEventWidgetSequence & | release (int touchId, const QPoint &pt, QWidget *widget=nullptr) |
QTouchEventWidgetSequence & | stationary (int touchId) override |
bool | commit (bool processEvents=true) override |
Public Member Functions inherited from QTest::QTouchEventSequence | |
virtual | ~QTouchEventSequence () |
QTouchEventSequence & | press (int touchId, const QPoint &pt, QWindow *window=nullptr) |
QTouchEventSequence & | move (int touchId, const QPoint &pt, QWindow *window=nullptr) |
QTouchEventSequence & | release (int touchId, const QPoint &pt, QWindow *window=nullptr) |
Friends | |
QTouchEventWidgetSequence | touchEvent (QWidget *widget, QPointingDevice *device, bool autoCommit) |
Additional Inherited Members | |
Protected Member Functions inherited from QTest::QTouchEventSequence | |
QTouchEventSequence (QWindow *window, QPointingDevice *aDevice, bool autoCommit) | |
QPoint | mapToScreen (QWindow *window, const QPoint &pt) |
QEventPoint & | point (int touchId) |
QEventPoint & | pointOrPreviousPoint (int touchId) |
Protected Attributes inherited from QTest::QTouchEventSequence | |
QMap< int, QEventPoint > | previousPoints |
QMap< int, QEventPoint > | points |
QWindow * | targetWindow |
QPointingDevice * | device |
bool | commitWhenDestroyed |
Definition at line 21 of file qtestsupport_widgets.h.
|
override |
Definition at line 112 of file qtestsupport_widgets.cpp.
References commit(), and QTest::QTouchEventSequence::commitWhenDestroyed.
|
overridevirtual |
Reimplemented from QTest::QTouchEventSequence.
Definition at line 147 of file qtestsupport_widgets.cpp.
References QMap< Key, T >::clear(), QTest::QTouchEventSequence::device, QTest::QTouchEventSequence::points, QTest::QTouchEventSequence::previousPoints, QCoreApplication::processEvents(), qt_handleTouchEventv2(), ret, QThread::sleep(), QTest::QTouchEventSequence::targetWindow, and QWidget::windowHandle().
Referenced by ~QTouchEventWidgetSequence().
QTouchEventWidgetSequence & QTest::QTouchEventWidgetSequence::move | ( | int | touchId, |
const QPoint & | pt, | ||
QWidget * | widget = nullptr ) |
Definition at line 125 of file qtestsupport_widgets.cpp.
References QTest::QTouchEventSequence::point(), QEventPoint::Updated, and widget.
QTouchEventWidgetSequence & QTest::QTouchEventWidgetSequence::press | ( | int | touchId, |
const QPoint & | pt, | ||
QWidget * | widget = nullptr ) |
Definition at line 118 of file qtestsupport_widgets.cpp.
References QTest::QTouchEventSequence::point(), QEventPoint::Pressed, and widget.
QTouchEventWidgetSequence & QTest::QTouchEventWidgetSequence::release | ( | int | touchId, |
const QPoint & | pt, | ||
QWidget * | widget = nullptr ) |
Definition at line 132 of file qtestsupport_widgets.cpp.
References QTest::QTouchEventSequence::point(), QEventPoint::Released, and widget.
|
overridevirtual |
Reimplemented from QTest::QTouchEventSequence.
Definition at line 140 of file qtestsupport_widgets.cpp.
References QTest::QTouchEventSequence::pointOrPreviousPoint(), and QEventPoint::Stationary.
|
friend |