diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/tools/qsharedpointer/externaltests.cpp | 16 | ||||
-rw-r--r-- | tests/auto/corelib/tools/qsharedpointer/externaltests.h | 8 |
2 files changed, 11 insertions, 13 deletions
diff --git a/tests/auto/corelib/tools/qsharedpointer/externaltests.cpp b/tests/auto/corelib/tools/qsharedpointer/externaltests.cpp index c229441839..a1c54b5ecd 100644 --- a/tests/auto/corelib/tools/qsharedpointer/externaltests.cpp +++ b/tests/auto/corelib/tools/qsharedpointer/externaltests.cpp @@ -386,23 +386,21 @@ namespace QTest { " QCoreApplication app(argc, argv);\n"; break; - case QExternalTest::QApplicationTty: - sourceCode += - " QApplication app(argc, argv, QApplication::Tty);\n"; - break; - guiapplication: - case QExternalTest::QApplicationGuiClient: + case QExternalTest::QGuiApplication: sourceCode += - " QApplication app(argc, argv, QApplication::GuiClient);\n"; + " QGuiApplication app(argc, argv);\n"; break; - case QExternalTest::QApplicationGuiServer: + widgetsapplication: + case QExternalTest::QApplication: sourceCode += - " QApplication app(argc, argv, QApplication::GuiServer);\n"; + " QApplication app(argc, argv);\n"; break; case QExternalTest::AutoApplication: + if (qtModules & QExternalTest::QtWidgets) + goto widgetsapplication; if (qtModules & QExternalTest::QtGui) goto guiapplication; if (qtModules == 0) diff --git a/tests/auto/corelib/tools/qsharedpointer/externaltests.h b/tests/auto/corelib/tools/qsharedpointer/externaltests.h index 0e3af6628f..7f64d73946 100644 --- a/tests/auto/corelib/tools/qsharedpointer/externaltests.h +++ b/tests/auto/corelib/tools/qsharedpointer/externaltests.h @@ -77,7 +77,8 @@ namespace QTest { QtTest = 0x0200, QtDBus = 0x0400, QtWebKit = 0x0800, - Phonon = 0x1000 // odd man out + QtWidgets = 0x1000, + Phonon = 0x2000 // odd man out }; Q_DECLARE_FLAGS(QtModules, QtModule) @@ -85,9 +86,8 @@ namespace QTest { AutoApplication, Applicationless, QCoreApplication, - QApplicationTty, - QApplicationGuiClient, - QApplicationGuiServer + QGuiApplication, + QApplication }; QList<QByteArray> qmakeSettings() const; |