diff options
author | David Boddie <dboddie@trolltech.com> | 2010-02-19 13:44:31 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2010-02-19 13:44:31 (GMT) |
commit | 96a3f7950346b7bba3097167c5fe8d9223c9b0a4 (patch) | |
tree | d0e3902d9c5985b02c222da1e5befaa28b891e5f /tools/qdoc3/generator.cpp | |
parent | d049509ba60b90f28c12db83c74e22649384e48c (diff) | |
parent | 09dc6df0472957d75f6c99cf81c939cb9a31602c (diff) | |
download | Qt-96a3f7950346b7bba3097167c5fe8d9223c9b0a4.zip Qt-96a3f7950346b7bba3097167c5fe8d9223c9b0a4.tar.gz Qt-96a3f7950346b7bba3097167c5fe8d9223c9b0a4.tar.bz2 |
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1
Diffstat (limited to 'tools/qdoc3/generator.cpp')
-rw-r--r-- | tools/qdoc3/generator.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/qdoc3/generator.cpp b/tools/qdoc3/generator.cpp index 6a8899a..a7ab453 100644 --- a/tools/qdoc3/generator.cpp +++ b/tools/qdoc3/generator.cpp @@ -1186,6 +1186,32 @@ void Generator::appendSortedNames(Text& text, } } +void Generator::appendSortedNames(Text& text, + const Node* base, + const NodeList& subs, + CodeMarker *marker) +{ + NodeList::ConstIterator r; + QMap<QString,Text> classMap; + int index = 0; + + r = subs.begin(); + while (r != subs.end()) { + Text className; + appendFullName(className, (*r), base, marker); + classMap[className.toString().toLower()] = className; + ++r; + } + + QStringList classNames = classMap.keys(); + classNames.sort(); + + foreach (const QString &className, classNames) { + text << classMap[className]; + text << separator(index++, classNames.count()); + } +} + int Generator::skipAtoms(const Atom *atom, Atom::Type type) const { int skipAhead = 0; |