summaryrefslogtreecommitdiff
path: root/src/qdoc/qmlvisitor.cpp
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2023-02-27 20:53:57 +0100
committerPaul Wicking <paul.wicking@qt.io>2023-03-04 21:02:05 +0100
commitf1f4cad99a7097c8612ec1c5b05b1b5647e05251 (patch)
treeec1130e0c456178d71a72e44726820a8b78deac6 /src/qdoc/qmlvisitor.cpp
parentd4ca672f987916b0e05e014f0ba40d8facab871d (diff)
downloadqttools-f1f4cad99a7097c8612ec1c5b05b1b5647e05251.tar.gz
QDoc: Always depend on QmlPrivate
Make Qml a hard dependency for QDoc. - There are no known usecases for running QDoc without qml support. - We're not testing QDoc without qml support, as it's not officially supported. - There are known issues with parsing certain file types when qml support is missing. - Dropping feature checks makes the code easier to reason about and thus maintain. - Clean up some of the configure and CMake configuration that's affected by the change. [ChangeLog][QDoc] QDoc now requires the library QmlPrivate. Make sure the qtdeclarative module is available. Fixes: QTBUG-111673 Change-Id: I3a8aa20ace3c379c3896b9f59aa4e8113cd9a873 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/qdoc/qmlvisitor.cpp')
-rw-r--r--src/qdoc/qmlvisitor.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/qdoc/qmlvisitor.cpp b/src/qdoc/qmlvisitor.cpp
index 9e70a356a..04e60e427 100644
--- a/src/qdoc/qmlvisitor.cpp
+++ b/src/qdoc/qmlvisitor.cpp
@@ -17,14 +17,11 @@
#include <QtCore/qfileinfo.h>
#include <QtCore/qglobal.h>
-#ifndef QT_NO_DECLARATIVE
-# include <private/qqmljsast_p.h>
-# include <private/qqmljsengine_p.h>
-#endif
+#include <private/qqmljsast_p.h>
+#include <private/qqmljsengine_p.h>
QT_BEGIN_NAMESPACE
-#ifndef QT_NO_DECLARATIVE
/*!
The constructor stores all the parameters in local data members.
*/
@@ -709,6 +706,4 @@ bool QmlDocVisitor::hasError() const
return hasRecursionDepthError;
}
-#endif
-
QT_END_NAMESPACE