![]() |
Qt 6.x
The Qt SDK
|
Classes | |
class | ComponentCreator |
class | QQuickControlsApplicationHelper |
struct | QQuickStyleHelper |
class | StyleInfo |
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 | doubleClickButton (QQuickAbstractButton *button) |
typedef std::function<void(const QString &, const QUrl &)> QQuickControlsTestUtils::ForEachCallback |
Definition at line 47 of file controlstestutils_p.h.
void QQuickControlsTestUtils::addTestRowForEachControl | ( | QQmlEngine * | engine, |
const QString & | qqc2ImportPath, | ||
const QString & | sourcePath, | ||
const QString & | targetPath, | ||
const QStringList & | skipList = QStringList() |
||
) |
Definition at line 89 of file controlstestutils.cpp.
References engine, forEachControl(), QTest::newRow(), and qPrintable.
bool QQuickControlsTestUtils::clickButton | ( | QQuickAbstractButton * | button | ) |
Definition at line 127 of file controlstestutils.cpp.
References button, QQuickAbstractButton::clicked(), QWidget::height, QSignalSpy::isValid(), Qt::LeftButton, QTest::mouseClick(), Qt::NoModifier, qWarning, QList< T >::size(), spy, verifyButtonClickable(), QWidget::width, and QWidget::window().
bool QQuickControlsTestUtils::doubleClickButton | ( | QQuickAbstractButton * | button | ) |
Definition at line 148 of file controlstestutils.cpp.
References button, QQuickAbstractButton::clicked(), QWidget::height, QSignalSpy::isValid(), Qt::LeftButton, QTest::mouseDClick(), Qt::NoModifier, qWarning, QList< T >::size(), spy, verifyButtonClickable(), QWidget::width, and QWidget::window().
void QQuickControlsTestUtils::forEachControl | ( | QQmlEngine * | engine, |
const QString & | qqc2ImportPath, | ||
const QString & | sourcePath, | ||
const QString & | targetPath, | ||
const QStringList & | skipList, | ||
QQuickControlsTestUtils::ForEachCallback | callback | ||
) |
Definition at line 47 of file controlstestutils.cpp.
References engine, QDir::entryInfoList(), QFile::exists(), QDir::Files, QUrl::fromLocalFile(), QString::isEmpty(), QString::prepend(), QStringLiteral, QString::startsWith(), url, and QQmlFile::urlToLocalFileOrQrc().
Referenced by addTestRowForEachControl().
bool QQuickControlsTestUtils::verifyButtonClickable | ( | QQuickAbstractButton * | button | ) |
Definition at line 97 of file controlstestutils.cpp.
References button, QWidget::height, QWidget::isEnabled(), QWidget::isVisible(), qWarning, QWidget::width, and QWidget::window().
Referenced by clickButton(), and doubleClickButton().