diff options
author | Martin Smith <msmith@trolltech.com> | 2009-08-04 11:30:00 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2009-08-04 11:31:28 (GMT) |
commit | 40d7153ad17d6eca96cb4718486e8e2654b72f00 (patch) | |
tree | fadc667efb069ec55d45ef8d3f29adb55124e98a /tools/qdoc3/htmlgenerator.cpp | |
parent | dc0088949822f846983c9a2d8f7dca59433ec555 (diff) | |
download | Qt-40d7153ad17d6eca96cb4718486e8e2654b72f00.zip Qt-40d7153ad17d6eca96cb4718486e8e2654b72f00.tar.gz Qt-40d7153ad17d6eca96cb4718486e8e2654b72f00.tar.bz2 |
qdoc: Added \annotated list command to qdoc3.
Now you can put "\annotatedlist xxx" anywhere in a
qdoc comment, and it will generate the class list for
the xxx group at that location. xxx must be a group
name.
Diffstat (limited to 'tools/qdoc3/htmlgenerator.cpp')
-rw-r--r-- | tools/qdoc3/htmlgenerator.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index 6590114..425c50b 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -537,6 +537,20 @@ int HtmlGenerator::generateAtom(const Atom *atom, out() << formattingRightMap()[atom->string()]; } break; + case Atom::AnnotatedList: + { + const FakeNode *fake = static_cast<const FakeNode *>(relative); + if (fake && !fake->groupMembers().isEmpty()) { + QList<Node*> values = tre->groups().values(atom->string()); + QMap<QString, const Node*> nodeMap; + for (int i = 0; i < values.size(); ++i) { + const Node* n = values.at(i); + nodeMap.insert(n->name(),n); + } + generateAnnotatedList(fake, marker, nodeMap); + } + } + break; case Atom::GeneratedList: if (atom->string() == "annotatedclasses") { generateAnnotatedList(relative, marker, nonCompatClasses); |