diff options
author | Martin Smith <martin.smith@nokia.com> | 2010-06-16 12:49:07 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2010-06-16 12:49:07 (GMT) |
commit | 00e3c4d7dcb5f14e9d13200a1e5d041d266f6610 (patch) | |
tree | 3c845bec14718ede0ad7d8f8ffb745fe1a120bba /tools/qdoc3/node.cpp | |
parent | 2cb5d8f7425bce83b5e95925e15d7920be3d2e8d (diff) | |
download | Qt-00e3c4d7dcb5f14e9d13200a1e5d041d266f6610.zip Qt-00e3c4d7dcb5f14e9d13200a1e5d041d266f6610.tar.gz Qt-00e3c4d7dcb5f14e9d13200a1e5d041d266f6610.tar.bz2 |
doc: Added more DITA output to the XML generator
Some of the cxxFunction stuff for member functions.
Task-number: QTBUG-11391
Diffstat (limited to 'tools/qdoc3/node.cpp')
-rw-r--r-- | tools/qdoc3/node.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/qdoc3/node.cpp b/tools/qdoc3/node.cpp index 4664e9d..b71a43e 100644 --- a/tools/qdoc3/node.cpp +++ b/tools/qdoc3/node.cpp @@ -789,6 +789,7 @@ ClassNode::ClassNode(InnerNode *parent, const QString& name) : InnerNode(Class, parent, name) { hidden = false; + abstract = false; setPageType(ApiPage); } @@ -1078,6 +1079,19 @@ FunctionNode::FunctionNode(Type type, InnerNode *parent, const QString& name, bo } /*! + Sets the \a virtualness of this function. If the \a virtualness + is PureVirtual, and if the parent() is a ClassNode, set the parent's + \e abstract flag to true. + */ +void FunctionNode::setVirtualness(Virtualness virtualness) +{ + vir = virtualness; + if ((virtualness == PureVirtual) && parent() && + (parent()->type() == Node::Class)) + parent()->setAbstract(true); +} + +/*! */ void FunctionNode::setOverload(bool overlode) { |