summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qsharedpointer/externaltests.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2012-11-26 12:22:45 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-26 14:16:44 +0100
commit12702d2b12f1a30b587d8d701d0ce37aac516f5d (patch)
tree204caa1c25b9e22572684a063bd0d933e3770f9c /tests/auto/corelib/tools/qsharedpointer/externaltests.cpp
parent8e7135c8946b7532c672d21e388176a5f5f5c803 (diff)
tst_QSharedPointer: update application types
QCoreApplication::Type enum was removed in 553e21. This change updates the (un)tested application types to match the application types available in Qt 5. Change-Id: I8631987a9ff31dc81baa013619cfc18616b851d1 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'tests/auto/corelib/tools/qsharedpointer/externaltests.cpp')
-rw-r--r--tests/auto/corelib/tools/qsharedpointer/externaltests.cpp16
1 files changed, 7 insertions, 9 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)