summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2010-07-22 09:54:20 (GMT)
committerLeandro Melo <leandro.melo@nokia.com>2010-07-22 09:54:20 (GMT)
commit2da1f6dd814381fde2a365a328de49761c507b3b (patch)
tree2adb66bb75da9a57a80c94151a093a14bbf588c1
parent07f131927faa09402589da7b4bfb516482f59e46 (diff)
downloadQt-2da1f6dd814381fde2a365a328de49761c507b3b.zip
Qt-2da1f6dd814381fde2a365a328de49761c507b3b.tar.gz
Qt-2da1f6dd814381fde2a365a328de49761c507b3b.tar.bz2
Docs: Additional HTML extraction marks for enumerations.
Reviewed-by: Martin Smith
-rw-r--r--tools/qdoc3/htmlgenerator.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp
index 9977df0..e840a7f 100644
--- a/tools/qdoc3/htmlgenerator.cpp
+++ b/tools/qdoc3/htmlgenerator.cpp
@@ -4415,8 +4415,8 @@ void HtmlGenerator::generateExtractionMark(const Node *node, ExtractionMarkType
out() << "$$$" + func->name() + func->rawParameters().remove(' ');
}
} else if (node->type() == Node::Property) {
- const PropertyNode *prop = static_cast<const PropertyNode *>(node);
out() << "-prop";
+ const PropertyNode *prop = static_cast<const PropertyNode *>(node);
const NodeList &list = prop->functions();
foreach (const Node *propFuncNode, list) {
if (propFuncNode->type() == Node::Function) {
@@ -4424,6 +4424,10 @@ void HtmlGenerator::generateExtractionMark(const Node *node, ExtractionMarkType
out() << "$$$" + func->name() + func->rawParameters().remove(' ');
}
}
+ } else if (node->type() == Node::Enum) {
+ const EnumNode *enumNode = static_cast<const EnumNode *>(node);
+ foreach (const EnumItem &item, enumNode->items())
+ out() << "$$$" + item.name();
}
} else if (markType == BriefMark) {
out() << "-brief";