summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodeparser.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2016-06-29 17:03:26 +0200
committerKai Koehne <kai.koehne@qt.io>2016-08-08 11:47:20 +0000
commitd3f3e98ee39f03d15d15ca664a104c1238ecf0c4 (patch)
tree9ee908aa8ed591f04f819128f32db9b35f95b71b /src/qdoc/cppcodeparser.cpp
parentacb38b386969a9e03faa117fabc6c82e59003de5 (diff)
downloadqttools-d3f3e98ee39f03d15d15ca664a104c1238ecf0c4.tar.gz
qdoc: Add support for attribution pages
"\page xx attribution" now marks a page as describing a code attribution, and \generatelist{attributions} generates an overview of all attribution pages. Originally code attributions were meant to be handled by \legalese ... \endlegalese and \generatelist{legalese}. Anyhow, this fails giving more details than the pure license text. Change-Id: I3543f077051b361ce59fe27e50f9719dfa52ced3 Reviewed-by: Topi Reiniƶ <topi.reinio@theqtcompany.com>
Diffstat (limited to 'src/qdoc/cppcodeparser.cpp')
-rw-r--r--src/qdoc/cppcodeparser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qdoc/cppcodeparser.cpp b/src/qdoc/cppcodeparser.cpp
index 5b7792d32..f985226dd 100644
--- a/src/qdoc/cppcodeparser.cpp
+++ b/src/qdoc/cppcodeparser.cpp
@@ -522,6 +522,8 @@ Node* CppCodeParser::processTopicCommand(const Doc& doc,
ptype = Node::FAQPage;
else if (t == "ditamap")
ptype = Node::DitaMapPage;
+ else if (t == "attribution")
+ ptype = Node::AttributionPage;
}
DocumentNode* dn = 0;
if (ptype == Node::DitaMapPage)