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
QQuickViewTestUtils Namespace Reference

Classes

struct  ListChange
 
class  ListRange
 
class  QaimModel
 
class  StressTestModel
 

Functions

QQuickViewcreateView ()
 
void flick (QQuickView *window, const QPoint &from, const QPoint &to, int duration)
 
void centerOnScreen (QQuickView *window, const QSize &size)
 
void centerOnScreen (QQuickView *window)
 
void moveMouseAway (QQuickView *window)
 
void moveAndPress (QQuickView *window, const QPoint &position)
 
void moveAndRelease (QQuickView *window, const QPoint &position)
 
QList< int > adjustIndexesForAddDisplaced (const QList< int > &indexes, int index, int count)
 
QList< int > adjustIndexesForMove (const QList< int > &indexes, int from, int to, int count)
 
QList< int > adjustIndexesForRemoveDisplaced (const QList< int > &indexes, int index, int count)
 
template<typename T >
static void qquickmodelviewstestutil_move (int from, int to, int n, T *items)
 

Function Documentation

◆ adjustIndexesForAddDisplaced()

QList< int > QQuickViewTestUtils::adjustIndexesForAddDisplaced ( const QList< int > & indexes,
int index,
int count )

Definition at line 82 of file viewtestutils.cpp.

References i.

◆ adjustIndexesForMove()

QList< int > QQuickViewTestUtils::adjustIndexesForMove ( const QList< int > & indexes,
int from,
int to,
int count )

Definition at line 95 of file viewtestutils.cpp.

References i.

◆ adjustIndexesForRemoveDisplaced()

QList< int > QQuickViewTestUtils::adjustIndexesForRemoveDisplaced ( const QList< int > & indexes,
int index,
int count )

Definition at line 116 of file viewtestutils.cpp.

References i.

◆ centerOnScreen() [1/2]

void QQuickViewTestUtils::centerOnScreen ( QQuickView * window)

Definition at line 41 of file viewtestutils.cpp.

References centerOnScreen(), and window().

+ Here is the call graph for this function:

◆ centerOnScreen() [2/2]

void QQuickViewTestUtils::centerOnScreen ( QQuickView * window,
const QSize & size )

Definition at line 34 of file viewtestutils.cpp.

References QRect::center(), and window().

Referenced by centerOnScreen(), and createView().

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

◆ createView()

QT_BEGIN_NAMESPACE QQuickView * QQuickViewTestUtils::createView ( )

Definition at line 25 of file viewtestutils.cpp.

References centerOnScreen(), and window().

+ Here is the call graph for this function:

◆ flick()

void QQuickViewTestUtils::flick ( QQuickView * window,
const QPoint & from,
const QPoint & to,
int duration )

Definition at line 67 of file viewtestutils.cpp.

References i, QTest::mouseMove(), moveAndPress(), moveAndRelease(), QTest::qWait(), and window().

+ Here is the call graph for this function:

◆ moveAndPress()

void QQuickViewTestUtils::moveAndPress ( QQuickView * window,
const QPoint & position )

Definition at line 61 of file viewtestutils.cpp.

References Qt::LeftButton, QTest::mouseMove(), QTest::mousePress(), position(), and window().

Referenced by flick().

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

◆ moveAndRelease()

void QQuickViewTestUtils::moveAndRelease ( QQuickView * window,
const QPoint & position )

Definition at line 55 of file viewtestutils.cpp.

References Qt::LeftButton, QTest::mouseMove(), QTest::mouseRelease(), position(), and window().

Referenced by flick().

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

◆ moveMouseAway()

void QQuickViewTestUtils::moveMouseAway ( QQuickView * window)

Definition at line 46 of file viewtestutils.cpp.

References Q_UNUSED, QCursor::setPos(), and window().

+ Here is the call graph for this function:

◆ qquickmodelviewstestutil_move()

template<typename T >
static void QQuickViewTestUtils::qquickmodelviewstestutil_move ( int from,
int to,
int n,
T * items )
static

Definition at line 127 of file viewtestutils_p.h.

References QList< T >::begin(), QSet< T >::begin(), i, it, and items.

Referenced by QQuickViewTestUtils::QaimModel::moveItems().

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