4#include <private/qguiapplication_p.h>
5#include <private/qeventpoint_p.h>
7#include <qpa/qplatformintegration.h>
12#include <QtCore/qtestsupport_core.h>
13#include <QtCore/qthread.h>
14#include <QtCore/QDebug>
37 qWarning() <<
"qWaitForWindowActive was called on a platform that doesn't support window"
38 <<
"activation. This means there is an error in the test and it should either"
39 <<
"check for the WindowActivation platform capability before calling"
40 <<
"qWaitForWindowActivate, use qWaitForWindowExposed instead, or skip the test."
41 <<
"Falling back to qWaitForWindowExposed.";
117 : targetWindow(
window),
device(aDevice), commitWhenDestroyed(autoCommit)
124 return window->mapToGlobal(pt);
130 if (!
points.contains(touchId))
137 if (!
points.contains(touchId)) {
IOBluetoothDevice * device
static void processEvents(QEventLoop::ProcessEventsFlags flags=QEventLoop::AllEvents)
Processes some pending events for the calling thread according to the specified flags.
The QEventPoint class provides information about a point in a QPointerEvent.
static QPlatformIntegration * platformIntegration()
T value(const Key &key, const T &defaultValue=T()) const
bool contains(const Key &key) const
\inmodule QtCore\reentrant
The QPointingDevice class describes a device from which mouse, touch or tablet events originate.
virtual bool commit(bool processEvents=true)
virtual ~QTouchEventSequence()
QTouchEventSequence & move(int touchId, const QPoint &pt, QWindow *window=nullptr)
QPoint mapToScreen(QWindow *window, const QPoint &pt)
QMap< int, QEventPoint > previousPoints
QEventPoint & pointOrPreviousPoint(int touchId)
QEventPoint & point(int touchId)
QTouchEventSequence(QWindow *window, QPointingDevice *aDevice, bool autoCommit)
QMap< int, QEventPoint > points
QTouchEventSequence & press(int touchId, const QPoint &pt, QWindow *window=nullptr)
QTouchEventSequence & release(int touchId, const QPoint &pt, QWindow *window=nullptr)
virtual QTouchEventSequence & stationary(int touchId)
static void sleep(unsigned long)
Combined button and popup list for selecting options.
Q_GUI_EXPORT bool qWaitForWindowActive(QWindow *window, int timeout=5000)
Q_GUI_EXPORT bool qWaitForWindowExposed(QWindow *window, int timeout=5000)
static bool qWaitFor(Functor predicate, QDeadlineTimer deadline=QDeadlineTimer(std::chrono::seconds{5}))
GLbitfield GLuint64 timeout
[4]
GLfixed GLfixed GLint GLint GLfixed points
Q_GUI_EXPORT bool qt_handleTouchEventv2(QWindow *w, const QPointingDevice *device, const QList< QEventPoint > &points, Qt::KeyboardModifiers mods=Qt::NoModifier)