summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativexmllistmodel
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-02-21 11:01:51 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-22 00:44:07 +0100
commit9183957619ede36af59bc058898b98c95c66967e (patch)
treebd9c57e814d42cc6c4de168ac325ab43ea027ce3 /tests/auto/declarative/qdeclarativexmllistmodel
parent650a8ccc21f8e65730afb195b05790e3b3f9985f (diff)
Fix build issues related to QT_NO_*MODULE* defines.
The QT_NO_XMLPATTERNS and QT_NO_CONCURRENT defines don't exist in Qt5 check for the existance of the modules with QT_XMLPATTERNS_LIB and QT_CONCURRENT_LIB instead of their absence with the old defines. Change-Id: I52bc9932294fe4564e58d06766301e2a0c41f15c Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'tests/auto/declarative/qdeclarativexmllistmodel')
-rw-r--r--tests/auto/declarative/qdeclarativexmllistmodel/qdeclarativexmllistmodel.pro6
-rw-r--r--tests/auto/declarative/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp4
2 files changed, 1 insertions, 9 deletions
diff --git a/tests/auto/declarative/qdeclarativexmllistmodel/qdeclarativexmllistmodel.pro b/tests/auto/declarative/qdeclarativexmllistmodel/qdeclarativexmllistmodel.pro
index a3dfd649..b212b083 100644
--- a/tests/auto/declarative/qdeclarativexmllistmodel/qdeclarativexmllistmodel.pro
+++ b/tests/auto/declarative/qdeclarativexmllistmodel/qdeclarativexmllistmodel.pro
@@ -2,11 +2,7 @@ CONFIG += testcase
TARGET = tst_qdeclarativexmllistmodel
QT += testlib
-contains(QT_CONFIG,quick1): QT += quick1 quick1-private script gui network core-private script-private
-contains(QT_CONFIG,xmlpatterns) {
- QT += xmlpatterns
- DEFINES += QTEST_XMLPATTERNS
-}
+contains(QT_CONFIG,quick1): QT += quick1 quick1-private script gui network core-private script-private xmlpatterns
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativexmllistmodel.cpp
diff --git a/tests/auto/declarative/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp b/tests/auto/declarative/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp
index 524fa74b..4550f5f4 100644
--- a/tests/auto/declarative/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp
+++ b/tests/auto/declarative/qdeclarativexmllistmodel/tst_qdeclarativexmllistmodel.cpp
@@ -53,7 +53,6 @@
#include <QtCore/qfile.h>
#include <QtCore/qtemporaryfile.h>
-#ifdef QTEST_XMLPATTERNS
#include <QtQuick1/qdeclarativeengine.h>
#include <QtQuick1/qdeclarativecomponent.h>
#include <private/qdeclarativexmllistmodel_p.h>
@@ -982,6 +981,3 @@ QTEST_MAIN(tst_qdeclarativexmllistmodel)
#include "tst_qdeclarativexmllistmodel.moc"
-#else
-QTEST_NOOP_MAIN
-#endif