diff --git a/src/tools/qdoc/node.cpp b/src/tools/qdoc/node.cpp index 7c1be44c20..bb70200e7d 100644 --- a/src/tools/qdoc/node.cpp +++ b/src/tools/qdoc/node.cpp @@ -527,9 +527,9 @@ QString Node::fileBase() const */ QString Node::guid() const { - if (uuid.isEmpty()) - uuid = idForNode(); - return uuid; + if (uuid_.isEmpty()) + uuid_ = idForNode(); + return uuid_; } #if 0 @@ -2724,7 +2724,7 @@ QString Node::idForNode() const str = "namespace-member-" + func->name(); else if (parent_->type() == Fake) { if (parent_->subType() == QmlClass) - str = "qml-method-" + func->name(); + str = "qml-method-" + parent_->name().toLower() + "-" + func->name(); else qDebug() << "qdoc internal error: Node subtype not handled:" << parent_->subType() << func->name(); @@ -2801,7 +2801,7 @@ QString Node::idForNode() const break; case Node::QmlMethod: func = static_cast(this); - str = "qml-method-" + func->name(); + str = "qml-method-" + parent_->name().toLower() + "-" + func->name(); if (func->overloadNumber() != 1) str += QLatin1Char('-') + QString::number(func->overloadNumber()); break; diff --git a/src/tools/qdoc/node.h b/src/tools/qdoc/node.h index 0b8758d92f..a7d5f4a891 100644 --- a/src/tools/qdoc/node.h +++ b/src/tools/qdoc/node.h @@ -288,7 +288,7 @@ private: QString url_; QString sinc; QString templateStuff_; - mutable QString uuid; + mutable QString uuid_; QString outSubDir_; QString qmlModuleName_; QString qmlModuleVersionMajor_;