4#ifndef QQUICKVISUALTESTUTILS_P_H
5#define QQUICKVISUALTESTUTILS_P_H
18#include <QtQml/qqmlexpression.h>
19#include <QtQuick/private/qquickitem_p.h>
21#include <private/qmlutils_p.h>
40 for (
int i = 0;
i < steps; ++
i) {
54 void move(
const QPoint &
pos,
int steps = 10,
int delayInMilliseconds = 1);
55 void move(
int x,
int y,
int steps = 10,
int delayInMilliseconds = 1);
79 if (
mo.cast(
item) && (objectName.
isEmpty() ||
item->objectName() == objectName)) {
85 if (
e.evaluate().toInt() ==
index)
86 return static_cast<T*
>(
item);
88 return static_cast<T*
>(
item);
93 return static_cast<T*
>(
item);
120 for (
int i=0;
i<indexes.
size();
i++)
134 template <
typename Func1>
160#if QT_CONFIG(quick_itemview)
176 return delegateItem !=
nullptr;
216 Qt::KeyboardModifiers m_modifiers;
224#define QQUICK_VERIFY_POLISH(item) \
225 QTRY_COMPARE(QQuickItemPrivate::get(item)->polishScheduled, false)
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
bool isVisible() const
Returns true if the item is visible; otherwise, false is returned.
qsizetype size() const noexcept
void append(parameter_type t)
int senderSignalIndex() const
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
QObject * sender() const
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; othe...
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QPointingDevice class describes a device from which mouse, touch or tablet events originate.
static const QPointingDevice * primaryPointingDevice(const QString &seatName=QString())
Returns the primary pointing device (the core pointer, traditionally assumed to be a mouse) on the gi...
The QQmlContext class defines a context within a QML engine.
The QQmlEngine class provides an environment for instantiating QML components.
The QQmlExpression class evaluates JavaScript in a QML context.
static QQuickItemPrivate * get(QQuickItem *item)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
QScopedPointer< QObject > cleanup
const char * failureMessage() const
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
void centerOnScreen(QQuickWindow *window)
QList< T * > findItems(QQuickItem *parent, const QString &objectName, bool visibleOnly=true)
void dumpTree(QQuickItem *parent, int depth=0)
QPoint mapToWindow(const QQuickItem *item, qreal relativeX, qreal relativeY)
bool delegateVisible(QQuickItem *item)
QPoint mapCenterToWindow(const QQuickItem *item)
bool findViewDelegateItem(QQuickItemView *itemView, int index, T &delegateItem, FindViewDelegateItemFlags flags=FindViewDelegateItemFlag::PositionViewAtIndex)
QQuickItem * findVisibleChild(QQuickItem *parent, const QString &objectName)
void moveMouseAway(QQuickWindow *window)
bool compareImages(const QImage &ia, const QImage &ib, QString *errorMessage)
T * findItem(QQuickItem *parent, const QString &objectName, int index=-1)
QPoint lerpPoints(const QPoint &point1, const QPoint &point2, qreal t)
void forEachStep(int steps, F &&func)
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
GLint GLint GLint GLint GLint x
[0]
GLint GLenum GLsizei GLsizei GLsizei depth
GLenum GLuint GLintptr GLsizeiptr size
[1]
QQmlContext * qmlContext(const QObject *obj)
QQuickItem * qobject_cast< QQuickItem * >(QObject *o)
static QString errorMessage(QUrlPrivate::ErrorCode errorCode, const QString &errorSource, qsizetype errorPosition)
QList< QObject * > senders
QList< QByteArray > signalNames
QMetaObject::Connection connectToSignal(const typename QtPrivate::FunctionPointer< Func1 >::Object *obj, Func1 signal, Qt::ConnectionType type=Qt::AutoConnection)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent