summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/node.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2010-08-18 11:31:55 (GMT)
committerMartin Smith <martin.smith@nokia.com>2010-08-18 11:31:55 (GMT)
commitbc0328e334f456c789a18eb254af4427ea730187 (patch)
treefd0c0bb25cf667fb03cfb8426b9383905e6311be /tools/qdoc3/node.cpp
parent69e8769e2a3f44700c24437dc851ea817c16318f (diff)
downloadQt-bc0328e334f456c789a18eb254af4427ea730187.zip
Qt-bc0328e334f456c789a18eb254af4427ea730187.tar.gz
Qt-bc0328e334f456c789a18eb254af4427ea730187.tar.bz2
qdoc: Reorganized the QML elements table to be a dictionary...
...and a set of functional group pages.
Diffstat (limited to 'tools/qdoc3/node.cpp')
-rw-r--r--tools/qdoc3/node.cpp23
1 files changed, 21 insertions, 2 deletions
diff --git a/tools/qdoc3/node.cpp b/tools/qdoc3/node.cpp
index 259641e..41f90d5 100644
--- a/tools/qdoc3/node.cpp
+++ b/tools/qdoc3/node.cpp
@@ -652,8 +652,14 @@ NodeList InnerNode::overloads(const QString &funcName) const
InnerNode::InnerNode(Type type, InnerNode *parent, const QString& name)
: Node(type, parent, name)
{
- if (type == Class)
+ switch (type) {
+ case Class:
+ case Namespace:
setPageType(ApiPage);
+ break;
+ default:
+ break;
+ }
}
/*!
@@ -845,6 +851,19 @@ bool LeafNode::isInnerNode() const
LeafNode::LeafNode(Type type, InnerNode *parent, const QString& name)
: Node(type, parent, name)
{
+ switch (type) {
+ case Enum:
+ case Function:
+ case Typedef:
+ case Variable:
+ case QmlProperty:
+ case QmlSignal:
+ case QmlMethod:
+ setPageType(ApiPage);
+ break;
+ default:
+ break;
+ }
}
/*!
@@ -1600,7 +1619,7 @@ QmlPropertyNode::QmlPropertyNode(QmlPropGroupNode *parent,
des(Trool_Default),
att(attached)
{
- // nothing.
+ setPageType(ApiPage);
}
/*!