summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/qdoc3/generator.cpp10
-rw-r--r--tools/qdoc3/node.cpp5
2 files changed, 7 insertions, 8 deletions
diff --git a/tools/qdoc3/generator.cpp b/tools/qdoc3/generator.cpp
index 0ef5156..c8a39ef 100644
--- a/tools/qdoc3/generator.cpp
+++ b/tools/qdoc3/generator.cpp
@@ -1190,19 +1190,15 @@ void Generator::appendSortedQmlNames(Text& text,
const NodeList& subs,
CodeMarker *marker)
{
- NodeList::ConstIterator r;
QMap<QString,Text> classMap;
int index = 0;
qDebug() << "Generator::appendSortedQmlNames():" << base->name() << "is inherited by...";
-
- r = subs.begin();
- while (r != subs.end()) {
+ for (int i = 0; i < subs.size(); ++i) {
Text t;
- qDebug() << " " << (*r)->name();
- appendFullName(t, (*r), base, marker);
+ qDebug() << " " << subs[i]->name();
+ appendFullName(t, subs[i], base, marker);
classMap[t.toString().toLower()] = t;
- ++r;
}
QStringList names = classMap.keys();
diff --git a/tools/qdoc3/node.cpp b/tools/qdoc3/node.cpp
index 7dda824..5415559 100644
--- a/tools/qdoc3/node.cpp
+++ b/tools/qdoc3/node.cpp
@@ -1315,8 +1315,11 @@ void QmlClassNode::addInheritedBy(const QString& base, Node* sub)
void QmlClassNode::subclasses(const QString& base, NodeList& subs)
{
subs.clear();
- if (inheritedBy.contains(base))
+ if (inheritedBy.count(base) > 0) {
subs = inheritedBy.values(base);
+ qDebug() << "QmlClassNode::subclasses():" << inheritedBy.count(base) << base
+ << "subs:" << subs.size();
+ }
}
/*!