diff options
Diffstat (limited to 'src/tools/qdoc/node.cpp')
-rw-r--r-- | src/tools/qdoc/node.cpp | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/src/tools/qdoc/node.cpp b/src/tools/qdoc/node.cpp index 4d6c58a8a3..c648c720eb 100644 --- a/src/tools/qdoc/node.cpp +++ b/src/tools/qdoc/node.cpp @@ -1048,20 +1048,6 @@ int InnerNode::overloadNumber(const FunctionNode *func) const } /*! - Returns the number of member functions of a class such that - the functions are all named \a funcName. - */ -int InnerNode::numOverloads(const QString& funcName) const -{ - if (primaryFunctionMap.contains(funcName)) { - return secondaryFunctionMap[funcName].count() + 1; - } - else { - return 0; - } -} - -/*! Returns a node list containing all the member functions of some class such that the functions overload the name \a funcName. */ @@ -1821,15 +1807,6 @@ int FunctionNode::overloadNumber() const } /*! - Returns the number of times this function name has been - overloaded, obtained from the parent. - */ -int FunctionNode::numOverloads() const -{ - return parent()->numOverloads(name()); -} - -/*! Returns the list of parameter names. */ QStringList FunctionNode::parameterNames() const @@ -2745,7 +2722,10 @@ QString Node::idForNode() const str = "qml-signal-handler-" + name(); break; case Node::QmlMethod: - str = "qml-method-" + name(); + func = static_cast<const FunctionNode*>(this); + str = "qml-method-" + func->name(); + if (func->overloadNumber() != 1) + str += "-" + QString::number(func->overloadNumber()); break; case Node::Variable: str = "var-" + name(); |