diff options
author | Martin Smith <msmith@trolltech.com> | 2009-06-26 11:51:51 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2009-06-26 11:53:10 (GMT) |
commit | 02c22119cf62873b785f9ae1628d530bcafb9ec1 (patch) | |
tree | 5379f42f4f2d944a8ba2d268677a8d32ec805b33 /tools/qdoc3/codemarker.h | |
parent | e1a0c7c01d494f7db194e3b5245368ba1d95c6c8 (diff) | |
download | Qt-02c22119cf62873b785f9ae1628d530bcafb9ec1.zip Qt-02c22119cf62873b785f9ae1628d530bcafb9ec1.tar.gz Qt-02c22119cf62873b785f9ae1628d530bcafb9ec1.tar.bz2 |
qdoc: Changed handling of reimplemented functions.
There are now sections for "Reimplemented Public Functions" and
"Reimplemented Protected Functions" in the summaries for each class.
This isn't complete yet. It introduces a lot of qdoc warnings about
undocumented parameters, but I will fix those. There is more to be
done here but i want to get some feedback already.
Task-number: 162182, 222650
Diffstat (limited to 'tools/qdoc3/codemarker.h')
-rw-r--r-- | tools/qdoc3/codemarker.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/qdoc3/codemarker.h b/tools/qdoc3/codemarker.h index 483dc4d..67b1064 100644 --- a/tools/qdoc3/codemarker.h +++ b/tools/qdoc3/codemarker.h @@ -61,6 +61,7 @@ struct Section QString singularMember; QString pluralMember; NodeList members; + NodeList reimpMembers; QList<QPair<ClassNode *, int> > inherited; Section() { } @@ -79,6 +80,7 @@ struct FastSection QString singularMember; QString pluralMember; QMap<QString, Node *> memberMap; + QMap<QString, Node *> reimpMemberMap; QList<QPair<ClassNode *, int> > inherited; FastSection(const InnerNode *innerNode0, @@ -89,6 +91,11 @@ struct FastSection name(name0), singularMember(singularMember0), pluralMember(pluralMember0) { } + bool isEmpty() const { + return (memberMap.isEmpty() && inherited.isEmpty() && + reimpMemberMap.isEmpty()); + } + }; class CodeMarker @@ -150,6 +157,7 @@ class CodeMarker Node *node, SynopsisStyle style, Status status); + bool insertReimpFunc(FastSection& fs, Node* node, Status status); void append(QList<Section>& sectionList, const FastSection& fastSection); private: |