Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQuickControlsTestUtils Namespace Reference

Classes

class  QQuickControlsApplicationHelper
struct  QQuickStyleHelper
class  ComponentCreator
class  StyleInfo
class  MockPlatformTheme
class  SystemEnvironment
class  ApplicationAttributes
class  QmlTestHelper

Typedefs

typedef std::function< void(const QString &, const QUrl &)> ForEachCallback

Functions

void forEachControl (QQmlEngine *engine, const QString &qqc2ImportPath, const QString &sourcePath, const QString &targetPath, const QStringList &skipList, ForEachCallback callback)
void addTestRowForEachControl (QQmlEngine *engine, const QString &qqc2ImportPath, const QString &sourcePath, const QString &targetPath, const QStringList &skipList=QStringList())
bool verifyButtonClickable (QQuickAbstractButton *button)
bool clickButton (QQuickAbstractButton *button)
bool clickMenuItem (QQuickMenuItem *menuItem)
bool doubleClickButton (QQuickAbstractButton *button)
QString visualFocusFailureMessage (QQuickControl *control)
bool arePopupWindowsSupported ()
QQuickPopuppopupParent (QQuickItem *item)

Typedef Documentation

◆ ForEachCallback

typedef std::function<void(const QString &, const QUrl &)> QQuickControlsTestUtils::ForEachCallback

Definition at line 51 of file controlstestutils_p.h.

Function Documentation

◆ addTestRowForEachControl()

void QQuickControlsTestUtils::addTestRowForEachControl ( QQmlEngine * engine,
const QString & qqc2ImportPath,
const QString & sourcePath,
const QString & targetPath,
const QStringList & skipList = QStringList() )

Definition at line 95 of file controlstestutils.cpp.

◆ arePopupWindowsSupported()

bool QQuickControlsTestUtils::arePopupWindowsSupported ( )
nodiscard

Definition at line 275 of file controlstestutils.cpp.

◆ clickButton()

bool QQuickControlsTestUtils::clickButton ( QQuickAbstractButton * button)
nodiscard

Definition at line 133 of file controlstestutils.cpp.

References verifyButtonClickable().

Here is the call graph for this function:

◆ clickMenuItem()

bool QQuickControlsTestUtils::clickMenuItem ( QQuickMenuItem * menuItem)
nodiscard

If menuItem is not in a menu, use \l clickButton.

Definition at line 167 of file controlstestutils.cpp.

◆ doubleClickButton()

bool QQuickControlsTestUtils::doubleClickButton ( QQuickAbstractButton * button)
nodiscard

Definition at line 197 of file controlstestutils.cpp.

References verifyButtonClickable().

Here is the call graph for this function:

◆ forEachControl()

void QQuickControlsTestUtils::forEachControl ( QQmlEngine * engine,
const QString & qqc2ImportPath,
const QString & sourcePath,
const QString & targetPath,
const QStringList & skipList,
QQuickControlsTestUtils::ForEachCallback callback )

Definition at line 53 of file controlstestutils.cpp.

◆ popupParent()

QQuickPopup * QQuickControlsTestUtils::popupParent ( QQuickItem * item)
nodiscard

Finds the popup that item is in, or returns nullptr.

Definition at line 289 of file controlstestutils.cpp.

◆ verifyButtonClickable()

bool QQuickControlsTestUtils::verifyButtonClickable ( QQuickAbstractButton * button)
nodiscard

Definition at line 103 of file controlstestutils.cpp.

Referenced by clickButton(), and doubleClickButton().

Here is the caller graph for this function:

◆ visualFocusFailureMessage()

QString QQuickControlsTestUtils::visualFocusFailureMessage ( QQuickControl * control)
nodiscard

Definition at line 251 of file controlstestutils.cpp.