4#ifndef QTEST_QUICKCONTROLS_P_H
5#define QTEST_QUICKCONTROLS_P_H
18#include <QtTest/qtest.h>
19#include <QtTest/private/qtestresult_p.h>
20#include <QtGui/qguiapplication.h>
21#include <QtQml/qqml.h>
22#include <QtQuickControls2/qquickstyle.h>
23#include <QtQuickControls2/private/qquickstyle_p.h>
46 for (
const QString &style : styles) {
49 testName = testObjectName +
"::" + style.toLocal8Bit();
58#define QTEST_QUICKCONTROLS_MAIN(TestCase) \
59int main(int argc, char *argv[]) \
61 qputenv("QML_NO_TOUCH_COMPRESSION", "1"); \
62 QGuiApplication app(argc, argv); \
64 QTEST_SET_MAIN_SOURCE_PATH \
65 return runTests(&tc, argc, argv); \
static QStringList builtInStyles()
static bool isUsingDefaultStyle()
static void setStyle(const QString &style)
Sets the application style to style.
static QString name()
Returns the name of the application style.
\macro QT_RESTRICTED_CAST_FROM_ASCII
static const char * currentTestObjectName()
static void setCurrentTestObject(const char *name)
Q_TESTLIB_EXPORT int qRun()
Q_TESTLIB_EXPORT void qInit(QObject *testObject, int argc=0, char **argv=nullptr)
Q_TESTLIB_EXPORT void qCleanup()
void qmlClearTypeRegistrations()
int runTests(QObject *testObject, int argc, char *argv[])