summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/node.cpp
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-06-21 12:22:53 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-06-21 12:22:53 (GMT)
commit6cb4929eb25191dd6d0dfe17ed4814e43acab788 (patch)
tree4d1015fab1272127373c6c29117d916dd5fcb4ae /tools/qdoc3/node.cpp
parentf0b74a1e78ccf52b0f6d7c13738918baff0eeef4 (diff)
parent9a1a98ea193d822f0a356f6afc2cb50b87d22968 (diff)
downloadQt-6cb4929eb25191dd6d0dfe17ed4814e43acab788.zip
Qt-6cb4929eb25191dd6d0dfe17ed4814e43acab788.tar.gz
Qt-6cb4929eb25191dd6d0dfe17ed4814e43acab788.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'tools/qdoc3/node.cpp')
-rw-r--r--tools/qdoc3/node.cpp14
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)
{