diff options
author | Martin Smith <msmith@trolltech.com> | 2010-02-19 11:35:50 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2010-02-19 11:35:50 (GMT) |
commit | 83d7242271cf8196a8133de0406788135e16abbb (patch) | |
tree | 7c1c8e88ff871e8d5df2c4aef5c696e2fe938215 /tools/qdoc3/generator.cpp | |
parent | 5c247a8afb51ff58c4f0ef7f26c2e22d4700cd39 (diff) | |
download | Qt-83d7242271cf8196a8133de0406788135e16abbb.zip Qt-83d7242271cf8196a8133de0406788135e16abbb.tar.gz Qt-83d7242271cf8196a8133de0406788135e16abbb.tar.bz2 |
qdoc: Finished "Inherited by" list for QML elements.
The listed elements are now links.
Task: QTBUG-8153
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 9b58d7f..d092f86 100644 --- a/tools/qdoc3/generator.cpp +++ b/tools/qdoc3/generator.cpp @@ -1213,6 +1213,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; |