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
qtest_quickcontrols_p.h File Reference

(4ba4600606ab849a5fa997950dd031ba111b9911)

#include <QtTest/qtest.h>
#include <QtTest/private/qtestresult_p.h>
#include <QtGui/qguiapplication.h>
#include <QtQml/qqml.h>
#include <QtQuickControls2/qquickstyle.h>
#include <QtQuickControls2/private/qquickstyle_p.h>
+ Include dependency graph for qtest_quickcontrols_p.h:

Go to the source code of this file.

Macros

#define QTEST_QUICKCONTROLS_MAIN(TestCase)
 

Functions

QStringList testStyles ()
 
int runTests (QObject *testObject, int argc, char *argv[])
 

Macro Definition Documentation

◆ QTEST_QUICKCONTROLS_MAIN

#define QTEST_QUICKCONTROLS_MAIN ( TestCase)
Value:
int main(int argc, char *argv[]) \
{ \
qputenv("QML_NO_TOUCH_COMPRESSION", "1"); \
QGuiApplication app(argc, argv); \
TestCase tc; \
QTEST_SET_MAIN_SOURCE_PATH \
return runTests(&tc, argc, argv); \
}
\macro qGuiApp
int main()
[0]
const GLfloat * tc
int runTests(QObject *testObject, int argc, char *argv[])
QApplication app(argc, argv)
[0]

Definition at line 58 of file qtest_quickcontrols_p.h.

Function Documentation

◆ runTests()

int runTests ( QObject * testObject,
int argc,
char * argv[] )
inline

Definition at line 36 of file qtest_quickcontrols_p.h.

References QTestResult::currentTestObjectName(), QTest::qCleanup(), QTest::qInit(), qmlClearTypeRegistrations(), QTest::qRun(), QTestResult::setCurrentTestObject(), QQuickStyle::setStyle(), testObject(), and testStyles().

+ Here is the call graph for this function:

◆ testStyles()

QStringList testStyles ( )
inline

Definition at line 25 of file qtest_quickcontrols_p.h.

References QQuickStylePrivate::builtInStyles(), QQuickStylePrivate::isUsingDefaultStyle(), and QQuickStyle::name().

Referenced by runTests().

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