Notifier signals don't need separate documentation.
Similar to getters and setters, notifier signals don't need separate documentation. Reimplementation of http://codereview.qt-project.org/#change,19374 in qtbase. Change-Id: If77fc554a3d8c1b520940d23e17cb7f76a71660f Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Martin Smith <martin.smith@nokia.com>bb10
parent
10537187b9
commit
73f011b69c
|
|
@ -1331,6 +1331,8 @@ void HtmlGenerator::generateClassLikeNode(const InnerNode *inner,
|
|||
names << prop->setters().first()->name();
|
||||
if (!prop->resetters().isEmpty())
|
||||
names << prop->resetters().first()->name();
|
||||
if (!prop->notifiers().isEmpty())
|
||||
names << prop->notifiers().first()->name();
|
||||
}
|
||||
else if ((*m)->type() == Node::Enum) {
|
||||
const EnumNode *enume = reinterpret_cast<const EnumNode*>(*m);
|
||||
|
|
|
|||
|
|
@ -907,6 +907,7 @@ inline void PropertyNode::addFunction(FunctionNode* function, FunctionRole role)
|
|||
inline void PropertyNode::addSignal(FunctionNode* function, FunctionRole role)
|
||||
{
|
||||
funcs[(int)role].append(function);
|
||||
function->setAssociatedProperty(this);
|
||||
}
|
||||
|
||||
inline NodeList PropertyNode::functions() const
|
||||
|
|
|
|||
|
|
@ -1739,7 +1739,7 @@ bool Tree::generateIndexSection(QXmlStreamWriter& writer,
|
|||
const FunctionNode* functionNode = static_cast<const FunctionNode*>(fnNode);
|
||||
writer.writeStartElement("setter");
|
||||
writer.writeAttribute("name", functionNode->name());
|
||||
writer.writeEndElement(); // getter
|
||||
writer.writeEndElement(); // setter
|
||||
}
|
||||
}
|
||||
foreach (const Node* fnNode, propertyNode->resetters()) {
|
||||
|
|
@ -1747,7 +1747,15 @@ bool Tree::generateIndexSection(QXmlStreamWriter& writer,
|
|||
const FunctionNode* functionNode = static_cast<const FunctionNode*>(fnNode);
|
||||
writer.writeStartElement("resetter");
|
||||
writer.writeAttribute("name", functionNode->name());
|
||||
writer.writeEndElement(); // getter
|
||||
writer.writeEndElement(); // resetter
|
||||
}
|
||||
}
|
||||
foreach (const Node* fnNode, propertyNode->notifiers()) {
|
||||
if (fnNode) {
|
||||
const FunctionNode* functionNode = static_cast<const FunctionNode*>(fnNode);
|
||||
writer.writeStartElement("notifier");
|
||||
writer.writeAttribute("name", functionNode->name());
|
||||
writer.writeEndElement(); // notifier
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue