summaryrefslogtreecommitdiffstats
path: root/src/tools/qdoc/codemarker.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2012-08-21 15:43:51 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-21 16:15:21 +0200
commit5f4d793d816b35776e59744732f8b0010a20a4d6 (patch)
tree784d3963ec2b9517800a0729cd8778a261d8938a /src/tools/qdoc/codemarker.cpp
parent6276acb59a800e3cc3251f218b285f988a9128b5 (diff)
doc: Replaced FakeNode with DocNode
The name FakeNode was a bad choice. It was used to represent something that wasn't derived from a C++ declaration in a .h file. Any generic page or QML item or any special kind of qdoc construct was stored in a FakeNode. The name was unfortunate because the constructs stored in FakeNodes were just as real as C++ constructs. So FakeNode has been renamed to DocNode, which just refers to a documentation node. The node type Fake has been replaced with node type Document. Change-Id: Ida9de8288b7b8915bf9273fd890ca84aaf05e182 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'src/tools/qdoc/codemarker.cpp')
-rw-r--r--src/tools/qdoc/codemarker.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/qdoc/codemarker.cpp b/src/tools/qdoc/codemarker.cpp
index e82a4a0e3c..d40db411b1 100644
--- a/src/tools/qdoc/codemarker.cpp
+++ b/src/tools/qdoc/codemarker.cpp
@@ -273,7 +273,7 @@ QString CodeMarker::taggedNode(const Node* node)
case Node::Property:
tag = QLatin1String("@property");
break;
- case Node::Fake:
+ case Node::Document:
/*
Remove the "QML:" prefix, if present.
There shouldn't be any of these "QML:"
@@ -464,7 +464,7 @@ void CodeMarker::insert(FastSection& fastSection,
bool inheritedMember = false;
InnerNode* parent = node->parent();
- if (parent && (parent->type() == Node::Fake) &&
+ if (parent && (parent->type() == Node::Document) &&
(parent->subType() == Node::QmlPropertyGroup)) {
parent = parent->parent();
}
@@ -476,7 +476,7 @@ void CodeMarker::insert(FastSection& fastSection,
fastSection.memberMap.insert(key, node);
}
else {
- if ((parent->type() == Node::Fake) && (parent->subType() == Node::QmlClass)) {
+ if ((parent->type() == Node::Document) && (parent->subType() == Node::QmlClass)) {
if (fastSection.inherited.isEmpty()
|| fastSection.inherited.last().first != parent) {
QPair<InnerNode*, int> p(parent, 0);
@@ -605,7 +605,7 @@ QStringList CodeMarker::macRefsForNode(Node *node)
return stringList;
}
case Node::Namespace:
- case Node::Fake:
+ case Node::Document:
default:
return QStringList();
}