qdoc: Don't document QML signal handlers

qdoc now ignores QML signal handler comments
and does not report errors for missing QML
signal handler documentation.

Task-number: QTBUG-29993
Change-Id: If2daae80944c8b85312d38d4ee8c07ebe1f79001
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
This commit is contained in:
Martin Smith 2013-03-05 14:08:26 +01:00 committed by The Qt Project
parent 31c5b34e80
commit 6d3ab0c96b

View File

@ -601,9 +601,15 @@ void QmlDocVisitor::endVisit(QQmlJS::AST::FunctionDeclaration* fd)
/*!
Begin the visit of the signal handler declaration \a sb, but only
if the nesting level is 1.
This visit is now deprecated. It has been decided to document
public signals. If a signal handler must be discussed in the
documentation, that discussion must take place in the comment
for the signal.
*/
bool QmlDocVisitor::visit(QQmlJS::AST::UiScriptBinding* sb)
bool QmlDocVisitor::visit(QQmlJS::AST::UiScriptBinding* )
{
#if 0
if (nestingLevel > 1) {
return true;
}
@ -617,6 +623,7 @@ bool QmlDocVisitor::visit(QQmlJS::AST::UiScriptBinding* sb)
}
}
}
#endif
return true;
}