QDoc: Prevent QDoc from outputting the brief for example pages.
Example pages' \brief do not form a complete sentence. The example pages have proper introductions and descriptions, unlike API pages which do use the brief information to summarize. Change-Id: I11f1362cd05e3cf90ae8e1c3a07d2584737fd89c Reviewed-by: Martin Smith <martin.smith@digia.com> Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
This commit is contained in:
parent
3f47becec0
commit
d4cd55daa2
@ -342,7 +342,8 @@ int HtmlGenerator::generateAtom(const Atom *atom, const Node *relative, CodeMark
|
||||
case Atom::BaseName:
|
||||
break;
|
||||
case Atom::BriefLeft:
|
||||
if (relative->isQmlBasicType() || (relative->isDocNode() && !relative->isExample())) {
|
||||
//do not output the brief for QML basic types and doc nodes (including examples).
|
||||
if (relative->isQmlBasicType() || relative->isDocNode()) {
|
||||
skipAhead = skipAtoms(atom, Atom::BriefRight);
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user