Define the QT_NO_.... when the module is absant from QT_CONFIG
authorOlivier Goffart <olivier.goffart@nokia.com>
Wed, 6 Apr 2011 13:33:13 +0000 (15:33 +0200)
committerOlivier Goffart <olivier.goffart@nokia.com>
Mon, 2 May 2011 13:30:22 +0000 (15:30 +0200)
Task-number: QTMODULARIZATION-38

src/declarative/util/util.pri

index 62fa8f1..5bc8b11 100644 (file)
@@ -69,4 +69,6 @@ contains(QT_CONFIG, xmlpatterns) {
     QT+=xmlpatterns
     SOURCES += $$PWD/qdeclarativexmllistmodel.cpp
     HEADERS += $$PWD/qdeclarativexmllistmodel_p.h
+} else {
+    DEFINES += QT_NO_XMLPATTERNS
 }