diff options
author | Martin Smith <msmith@trolltech.com> | 2010-02-03 13:45:20 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2010-02-03 13:45:20 (GMT) |
commit | 63f66fb0008f93638de782b03f53e9777a941ab7 (patch) | |
tree | 1e52796ba03461346a8ec38785fe881f41fd7953 /tools/qdoc3/node.cpp | |
parent | d50c672b037005dfd838bf7658ab7f2888697e85 (diff) | |
download | Qt-63f66fb0008f93638de782b03f53e9777a941ab7.zip Qt-63f66fb0008f93638de782b03f53e9777a941ab7.tar.gz Qt-63f66fb0008f93638de782b03f53e9777a941ab7.tar.bz2 |
qdoc3: Added support for the \qmlbasictype command.
Diffstat (limited to 'tools/qdoc3/node.cpp')
-rw-r--r-- | tools/qdoc3/node.cpp | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/tools/qdoc3/node.cpp b/tools/qdoc3/node.cpp index 5796ea4..4da916c 100644 --- a/tools/qdoc3/node.cpp +++ b/tools/qdoc3/node.cpp @@ -85,6 +85,9 @@ void Node::setDoc(const Doc& doc, bool replace) } /*! + Construct a node with the given \a type and having the + given \a parent and \a name. The new node is added to the + parent's child list. */ Node::Node(Type type, InnerNode *parent, const QString& name) : typ(type), @@ -490,6 +493,8 @@ NodeList InnerNode::overloads(const QString &funcName) const } /*! + Construct an inner node (i.e., not a leaf node) of the + given \a type and having the given \a parent and \a name. */ InnerNode::InnerNode(Type type, InnerNode *parent, const QString& name) : Node(type, parent, name) @@ -547,6 +552,7 @@ bool InnerNode::isSameSignature(const FunctionNode *f1, const FunctionNode *f2) } /*! + Adds the \a child to this node's child list. */ void InnerNode::addChild(Node *child) { @@ -564,7 +570,9 @@ void InnerNode::addChild(Node *child) else { if (child->type() == Enum) enumChildren.append(child); - childMap.insert(child->name(), child); + if (childMap.contains(child->name())) + qDebug() << "Duplicate child" << child->name(); + childMap.insert(child->name(), child); } } @@ -1207,7 +1215,11 @@ bool TargetNode::isInnerNode() const bool QmlClassNode::qmlOnly = false; /*! - Constructor for the Qml class node. + Constructs a Qml class node (i.e. a Fake node with the + subtype QmlClass. The new node has the given \a parent + and \a name and is associated with the C++ class node + specified by \a cn which may be null if the the Qml + class node is not associated with a C++ class node. */ QmlClassNode::QmlClassNode(InnerNode *parent, const QString& name, @@ -1234,6 +1246,18 @@ QString QmlClassNode::fileBase() const } /*! + Constructs a Qml basic type node (i.e. a Fake node with + the subtype QmlBasicType. The new node has the given + \a parent and \a name. + */ +QmlBasicTypeNode::QmlBasicTypeNode(InnerNode *parent, + const QString& name) + : FakeNode(parent, name, QmlBasicType) +{ + setTitle(name); +} + +/*! Constructor for the Qml property group node. \a parent is always a QmlClassNode. */ |