aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltest/qmltest.pro
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@digia.com>2012-12-27 09:48:07 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-31 21:13:04 +0100
commit473ec1734751cdea889be9690bde0af6371ec111 (patch)
treea459d28a1d969d447db769abff39461fd2f2ff81 /src/qmltest/qmltest.pro
parentdaa33ba7b99b3f4ee3ac9a738c85bca36ab0fdd7 (diff)
qmltest: Added the possibility to use QApplication
Current QML test cases in QtDesktopComponents still need to use QApplication. Added QT_QMLTEST_WITH_WIDGETS define when QtWidgets is available. Also proveded a command line switch "-widgets" for it. Change-Id: Ib6c7313538cb8875144636b6f8bd264b0f13aa8d Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'src/qmltest/qmltest.pro')
-rw-r--r--src/qmltest/qmltest.pro7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/qmltest/qmltest.pro b/src/qmltest/qmltest.pro
index 8864f1cae1..9ed792748c 100644
--- a/src/qmltest/qmltest.pro
+++ b/src/qmltest/qmltest.pro
@@ -4,6 +4,11 @@ DEFINES += QT_NO_URL_CAST_FROM_STRING
QT = core
QT_PRIVATE = testlib-private quick qml-private v8-private gui core-private
+!contains(QT_CONFIG, no-widgets) {
+ QT += widgets
+ DEFINES += QT_QMLTEST_WITH_WIDGETS
+}
+
load(qt_module)
# Install qmltestcase.prf into the Qt mkspecs so that "CONFIG += qmltestcase"
@@ -23,4 +28,4 @@ HEADERS += \
$$PWD/quicktestresult_p.h \
$$PWD/qtestoptions_p.h
-DEFINES += QT_QML_DEBUG_NO_WARNING \ No newline at end of file
+DEFINES += QT_QML_DEBUG_NO_WARNING