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 <visualtestutils_p.h>
Public Member Functions | |
PointLerper (QQuickWindow *window, const QPointingDevice *pointingDevice=QPointingDevice::primaryPointingDevice()) | |
void | move (const QPoint &pos, int steps=10, int delayInMilliseconds=1) |
void | move (int x, int y, int steps=10, int delayInMilliseconds=1) |
Definition at line 50 of file visualtestutils_p.h.
QQuickVisualTestUtils::PointLerper::PointLerper | ( | QQuickWindow * | window, |
const QPointingDevice * | pointingDevice = QPointingDevice::primaryPointingDevice() ) |
Convenience class to linearly interpolate between two pointer move points.
Definition at line 86 of file visualtestutils.cpp.
void QQuickVisualTestUtils::PointLerper::move | ( | const QPoint & | pos, |
int | steps = 10, | ||
int | delayInMilliseconds = 1 ) |
Moves from the last pos (or {0, 0} if there have been no calls to this function yet) to pos using linear interpolation over 10 (default value) steps with 1 ms (default value) delays between each step.
Definition at line 100 of file visualtestutils.cpp.
References QQuickVisualTestUtils::forEachStep(), QQuickVisualTestUtils::lerpPoints(), QQuickTest::pointerMove(), pos, and QTest::qWait().
void QQuickVisualTestUtils::PointLerper::move | ( | int | x, |
int | y, | ||
int | steps = 10, | ||
int | delayInMilliseconds = 1 ) |
Definition at line 109 of file visualtestutils.cpp.