From 843b7f1a1705e2f1b207eb4958be87d570ac7a5f Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Tue, 7 May 2013 14:40:36 +0200 Subject: qdoc: Briefs from other modules now show up The brief text for a documented thing is now output as an attribute of that thing in the module's index file, and it is reconstituted in the thing's tree node, when qdoc reads the module's index file later. Only the verbatim text of the brief is saved in the index file, i.e. no links or other markup. The effect is that brief texts can be used in other modules. Task-number: QTBUG-31021 Change-Id: I932a0c85259b6d1901138f0c0959ddb9815b7db5 Reviewed-by: Jerome Pasion --- src/tools/qdoc/ditaxmlgenerator.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/tools/qdoc/ditaxmlgenerator.cpp') diff --git a/src/tools/qdoc/ditaxmlgenerator.cpp b/src/tools/qdoc/ditaxmlgenerator.cpp index 314dda3a9d..eea1845e17 100644 --- a/src/tools/qdoc/ditaxmlgenerator.cpp +++ b/src/tools/qdoc/ditaxmlgenerator.cpp @@ -2763,11 +2763,22 @@ void DitaXmlGenerator::generateAnnotatedList(const Node* relative, writeEndTag(); //

writeEndTag(); // } + else if (!node->reconstitutedBrief().isEmpty()) { + writeStartTag(DT_entry); + writeStartTag(DT_p); + writeCharacters(node->reconstitutedBrief()); + writeEndTag(); //

+ writeEndTag(); // + } } else { writeStartTag(DT_entry); writeStartTag(DT_p); - writeCharacters(protectEnc(node->doc().briefText().toString())); // zzz + if (!node->reconstitutedBrief().isEmpty()) { + writeCharacters(node->reconstitutedBrief()); + } + else + writeCharacters(protectEnc(node->doc().briefText().toString())); writeEndTag(); //

writeEndTag(); // } -- cgit v1.2.3