summaryrefslogtreecommitdiffstats
path: root/src/tools/qdoc/node.h
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@digia.com>2015-03-17 13:50:06 +0100
committerMartin Smith <martin.smith@digia.com>2015-03-27 13:55:44 +0000
commit6a5e2f69a898b0fca3ec75caeddac4a69803269f (patch)
tree1286a6ffdc45ed074a3525debe738420e80f1bd1 /src/tools/qdoc/node.h
parent58da6f96a84e6e140d384b2e422c0fdf020897ea (diff)
qdoc: Update for classes in namespaces
The resolving of namespaces across module boundaries was moving all the nodes for elements contained in the namespace into the namespace node for the \namespace command for that namespace. But moving class and namespace nodes is wrong because they are actually in different modules where they should also be output. This update to the fix for the original bug leaves the class and nested namespace nodes where they are but adds them as special "orphan" nodes to the namespace node that has the \namespace command. These orphan nodes are then included in the namespace content list when it is written out. Change-Id: I0eee368ed39f28129b5b43bb4a16963961f53db3 Task-number: QTBUG-44688 Reviewed-by: Martin Smith <martin.smith@digia.com>
Diffstat (limited to 'src/tools/qdoc/node.h')
-rw-r--r--src/tools/qdoc/node.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/qdoc/node.h b/src/tools/qdoc/node.h
index 78f3d9eb6e..fc9d33edc2 100644
--- a/src/tools/qdoc/node.h
+++ b/src/tools/qdoc/node.h
@@ -116,7 +116,8 @@ public:
Deprecated,
Preliminary,
Commendable,
- Internal
+ Internal,
+ Intermediate
}; // don't reorder this enum
enum ThreadSafeness {
@@ -458,10 +459,13 @@ public:
void markSeen() { seen_ = true; }
void markNotSeen() { seen_ = false; }
void setTree(Tree* t) { tree_ = t; }
+ const NodeList& orphans() const { return orphans_; }
+ void addOrphan(Node* child) { orphans_.append(child); }
private:
bool seen_;
Tree* tree_;
+ NodeList orphans_;
};
struct RelatedClass