path: root/src/tools/qdoc/qmlvisitor.h
diff options
authorMartin Smith <>2013-03-05 10:52:16 +0100
committerThe Qt Project <>2013-03-05 12:19:08 +0100
commit8b10e8c198baa53f892c65d2e41c56df751ff7b8 (patch)
treed254ce11ae1e40c04c22e9276f609bac45d0e854 /src/tools/qdoc/qmlvisitor.h
parent80af20429715228a69122ee824a64108dfb53809 (diff)
qdoc: Maintain correct nesting level for QML parsing
qdoc was not incrementing the nesting level when parsing a UiObjectBinding, which can contain a component definition. qdoc now increments the nesting level when starting to vidit a UiObjectBinding and decrements it when ending the visit. Note this fix does not stop qdoc from reporting that public signal handlers have not been documented. If that is to be changed, it will be done separately. Task-number: QTBUG-29993 Change-Id: Ibd5ef81082e989652b3a15dcc95080a2757e0077 Reviewed-by: J-P Nurmi <>
Diffstat (limited to 'src/tools/qdoc/qmlvisitor.h')
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/qdoc/qmlvisitor.h b/src/tools/qdoc/qmlvisitor.h
index bfec61eb34..cc00ccbe6c 100644
--- a/src/tools/qdoc/qmlvisitor.h
+++ b/src/tools/qdoc/qmlvisitor.h
@@ -85,6 +85,11 @@ public:
bool visit(QQmlJS::AST::UiPublicMember *member);
void endVisit(QQmlJS::AST::UiPublicMember *definition);
+ virtual bool visit(QQmlJS::AST::UiObjectBinding *);
+ virtual void endVisit(QQmlJS::AST::UiObjectBinding *);
+ virtual void endVisit(QQmlJS::AST::UiArrayBinding *);
+ virtual bool visit(QQmlJS::AST::UiArrayBinding *);
bool visit(QQmlJS::AST::IdentifierPropertyName *idproperty);
bool visit(QQmlJS::AST::FunctionDeclaration *);