|
|
@ -31,6 +31,9 @@ Q_IMPORT_PLUGIN(qjpcodecs)
|
|
|
|
Q_IMPORT_PLUGIN(qtwcodecs)
|
|
|
|
Q_IMPORT_PLUGIN(qtwcodecs)
|
|
|
|
Q_IMPORT_PLUGIN(qkrcodecs)
|
|
|
|
Q_IMPORT_PLUGIN(qkrcodecs)
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
|
|
|
|
#if defined(QT_QPA_PLATFORM_MINIMAL)
|
|
|
|
|
|
|
|
Q_IMPORT_PLUGIN(QMinimalIntegrationPlugin);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#if defined(QT_QPA_PLATFORM_XCB)
|
|
|
|
#if defined(QT_QPA_PLATFORM_XCB)
|
|
|
|
Q_IMPORT_PLUGIN(QXcbIntegrationPlugin);
|
|
|
|
Q_IMPORT_PLUGIN(QXcbIntegrationPlugin);
|
|
|
|
#elif defined(QT_QPA_PLATFORM_WINDOWS)
|
|
|
|
#elif defined(QT_QPA_PLATFORM_WINDOWS)
|
|
|
@ -53,6 +56,11 @@ int main(int argc, char *argv[])
|
|
|
|
|
|
|
|
|
|
|
|
bool fInvalid = false;
|
|
|
|
bool fInvalid = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Prefer the "minimal" platform for the test instead of the normal default
|
|
|
|
|
|
|
|
// platform ("xcb", "windows", or "cocoa") so tests can't unintentially
|
|
|
|
|
|
|
|
// interfere with any background GUIs and don't require extra resources.
|
|
|
|
|
|
|
|
setenv("QT_QPA_PLATFORM", "minimal", 0);
|
|
|
|
|
|
|
|
|
|
|
|
// Don't remove this, it's needed to access
|
|
|
|
// Don't remove this, it's needed to access
|
|
|
|
// QApplication:: and QCoreApplication:: in the tests
|
|
|
|
// QApplication:: and QCoreApplication:: in the tests
|
|
|
|
QApplication app(argc, argv);
|
|
|
|
QApplication app(argc, argv);
|
|
|
|