diff options
author | Martin Smith <msmith@trolltech.com> | 2009-08-17 12:28:45 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2009-08-17 12:30:02 (GMT) |
commit | 1ca6a2f3174fdfbbe080af920ab75558a1a9247e (patch) | |
tree | 706c3a4beb1b3a13be73ee3e28c40226ef150b29 /tools/qdoc3/node.h | |
parent | 38f41726cf3a76a57ca15f7cc82e56a5aa2c5a1c (diff) | |
download | Qt-1ca6a2f3174fdfbbe080af920ab75558a1a9247e.zip Qt-1ca6a2f3174fdfbbe080af920ab75558a1a9247e.tar.gz Qt-1ca6a2f3174fdfbbe080af920ab75558a1a9247e.tar.bz2 |
qdoc: Fixed the bug that made reporting NOTIFY signals not work.
The signal was being associated with a particular property,
but in many classes, the NOTIFY signal applies to multiple
properties. Added a new function to the PropertyNode class
that adds the signal function without associating it with
any property.
Task-number: 259071
Diffstat (limited to 'tools/qdoc3/node.h')
-rw-r--r-- | tools/qdoc3/node.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/qdoc3/node.h b/tools/qdoc3/node.h index 2a1ca05..0cddf51 100644 --- a/tools/qdoc3/node.h +++ b/tools/qdoc3/node.h @@ -598,6 +598,7 @@ class PropertyNode : public LeafNode void setDataType(const QString& dataType) { dt = dataType; } void addFunction(FunctionNode *function, FunctionRole role); + void addSignal(FunctionNode *function, FunctionRole role); void setStored(bool stored) { sto = toTrool(stored); } void setDesignable(bool designable) { des = toTrool(designable); } void setOverriddenFrom(const PropertyNode *baseProperty); @@ -641,6 +642,11 @@ inline void PropertyNode::addFunction(FunctionNode *function, FunctionRole role) function->setAssociatedProperty(this); } +inline void PropertyNode::addSignal(FunctionNode *function, FunctionRole role) +{ + funcs[(int)role].append(function); +} + inline NodeList PropertyNode::functions() const { NodeList list; |