47 #pragma qt_no_master_include 50 #include <QtTest/qtest_global.h> 51 #include <QtTest/qtestassert.h> 52 #include <QtTest/qtestsystem.h> 53 #include <QtTest/qtestspontaneevent.h> 55 #include <QtCore/qmap.h> 56 #include <QtGui/qevent.h> 57 #include <QtGui/qwidget.h> 153 #endif // QTESTTOUCH_H
void setScreenPos(const QPointF &screenPos)
~QTouchEventSequence()
Commits this sequence of touch events and frees allocated resources.
QTouchEvent::DeviceType deviceType
void operator=(const QTouchEventSequence &)
#define QT_END_NAMESPACE
This macro expands to.
QTouchEvent::TouchPoint & point(int touchId)
QPointer< QWidget > widget
QTouchEventSequence & move(int touchId, const QPoint &pt, QWidget *widget=0)
Adds a move event for touchpoint touchId at position pt to this sequence and returns a reference to t...
QPoint mapToScreen(QWidget *widget, const QPoint &pt)
QList< T > values() const
Returns a list containing all the values in the map, in ascending order of their keys.
DeviceType
This enum represents the type of device that generated a QTouchEvent.
QTouchEventSequence(QWidget *widget, QTouchEvent::DeviceType aDeviceType)
void setState(Qt::TouchPointStates state)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QTouchEventSequence & release(int touchId, const QPoint &pt, QWidget *widget=0)
Adds a release event for touchpoint touchId at position pt to this sequence and returns a reference t...
QTouchEventSequence & press(int touchId, const QPoint &pt, QWidget *widget=0)
Adds a press event for touchpoint touchId at position pt to this sequence and returns a reference to ...
friend QTouchEventSequence touchEvent(QWidget *, QTouchEvent::DeviceType)
The QPoint class defines a point in the plane using integer precision.
bool contains(const Key &key) const
Returns true if the map contains an item with key key; otherwise returns false.
The TouchPoint class provides information about a touch point in a QTouchEvent.
The QTouchEventSequence class is used to simulate a sequence of touch events.
QMap< int, QTouchEvent::TouchPoint > points
QTouchEventSequence & stationary(int touchId)
Adds a stationary event for touchpoint touchId to this sequence and returns a reference to this QTouc...
The QTest namespace contains all the functions and declarations that are related to the QTestLib tool...
Q_GUI_EXPORT void qt_translateRawTouchEvent(QWidget *window, QTouchEvent::DeviceType deviceType, const QList< QTouchEvent::TouchPoint > &touchPoints)
void clear()
Removes all items from the map.