summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/node.cpp
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-10-19 11:50:24 (GMT)
committerMartin Smith <msmith@trolltech.com>2009-10-19 11:51:53 (GMT)
commitf16fc0150fce1d78cc71c27c163baf45e8953aca (patch)
tree4ee6be62ef2c24cda3387ecb6815fb374b0b49a3 /tools/qdoc3/node.cpp
parent7a647e8c9efbbd46184bc4714159c82ae26be958 (diff)
downloadQt-f16fc0150fce1d78cc71c27c163baf45e8953aca.zip
Qt-f16fc0150fce1d78cc71c27c163baf45e8953aca.tar.gz
Qt-f16fc0150fce1d78cc71c27c163baf45e8953aca.tar.bz2
qdoc3: Added the \qmlattachedproperty command.
It works just like the \qmlproperty command, except that it puts the properties in a different section for attached properties.
Diffstat (limited to 'tools/qdoc3/node.cpp')
-rw-r--r--tools/qdoc3/node.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/tools/qdoc3/node.cpp b/tools/qdoc3/node.cpp
index 558808f..49f2cc9 100644
--- a/tools/qdoc3/node.cpp
+++ b/tools/qdoc3/node.cpp
@@ -1158,8 +1158,12 @@ QString QmlClassNode::fileBase() const
Constructor for the Qml property group node. \a parent is
always a QmlClassNode.
*/
-QmlPropGroupNode::QmlPropGroupNode(QmlClassNode* parent, const QString& name)
- : FakeNode(parent, name, QmlPropertyGroup), isdefault(false)
+QmlPropGroupNode::QmlPropGroupNode(QmlClassNode* parent,
+ const QString& name,
+ bool attached)
+ : FakeNode(parent, name, QmlPropertyGroup),
+ isdefault(false),
+ att(attached)
{
// nothing.
}
@@ -1169,11 +1173,13 @@ QmlPropGroupNode::QmlPropGroupNode(QmlClassNode* parent, const QString& name)
*/
QmlPropertyNode::QmlPropertyNode(QmlPropGroupNode *parent,
const QString& name,
- const QString& type)
+ const QString& type,
+ bool attached)
: LeafNode(QmlProperty, parent, name),
dt(type),
sto(Trool_Default),
- des(Trool_Default)
+ des(Trool_Default),
+ att(attached)
{
// nothing.
}