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>.
Loading...
Searching...
No Matches
QTest::QTouchEventWidgetSequence Class Reference

#include <qtestsupport_widgets.h>

+ Inheritance diagram for QTest::QTouchEventWidgetSequence:
+ Collaboration diagram for QTest::QTouchEventWidgetSequence:

Public Member Functions

 ~QTouchEventWidgetSequence () override
 
QTouchEventWidgetSequencepress (int touchId, const QPoint &pt, QWidget *widget=nullptr)
 
QTouchEventWidgetSequencemove (int touchId, const QPoint &pt, QWidget *widget=nullptr)
 
QTouchEventWidgetSequencerelease (int touchId, const QPoint &pt, QWidget *widget=nullptr)
 
QTouchEventWidgetSequencestationary (int touchId) override
 
bool commit (bool processEvents=true) override
 
- Public Member Functions inherited from QTest::QTouchEventSequence
virtual ~QTouchEventSequence ()
 
QTouchEventSequencepress (int touchId, const QPoint &pt, QWindow *window=nullptr)
 
QTouchEventSequencemove (int touchId, const QPoint &pt, QWindow *window=nullptr)
 
QTouchEventSequencerelease (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)
 
QEventPointpoint (int touchId)
 
QEventPointpointOrPreviousPoint (int touchId)
 
- Protected Attributes inherited from QTest::QTouchEventSequence
QMap< int, QEventPointpreviousPoints
 
QMap< int, QEventPointpoints
 
QWindowtargetWindow
 
QPointingDevicedevice
 
bool commitWhenDestroyed
 

Detailed Description

Definition at line 21 of file qtestsupport_widgets.h.

Constructor & Destructor Documentation

◆ ~QTouchEventWidgetSequence()

QTest::QTouchEventWidgetSequence::~QTouchEventWidgetSequence ( )
override

Definition at line 112 of file qtestsupport_widgets.cpp.

References commit(), and QTest::QTouchEventSequence::commitWhenDestroyed.

+ Here is the call graph for this function:

Member Function Documentation

◆ commit()

bool QTest::QTouchEventWidgetSequence::commit ( bool processEvents = true)
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ move()

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.

+ Here is the call graph for this function:

◆ press()

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.

+ Here is the call graph for this function:

◆ release()

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.

+ Here is the call graph for this function:

◆ stationary()

QTouchEventWidgetSequence & QTest::QTouchEventWidgetSequence::stationary ( int touchId)
overridevirtual

Reimplemented from QTest::QTouchEventSequence.

Definition at line 140 of file qtestsupport_widgets.cpp.

References QTest::QTouchEventSequence::pointOrPreviousPoint(), and QEventPoint::Stationary.

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ touchEvent

QTouchEventWidgetSequence touchEvent ( QWidget * widget,
QPointingDevice * device,
bool autoCommit )
friend

The documentation for this class was generated from the following files: