summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-10-06 11:35:03 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:11 -0300
commit6ab94ebbe402a92a7587e5b947f821712b6ee605 (patch)
treef7498ba102397503d8325367bfa18963248c8efe
parentbf3a54b93944ae86f82db2e49ccffe8efdaa3517 (diff)
Fix extraction of documentation from namespaced classes.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Ara├║jo <renato.filho@openbossa.org>
-rw-r--r--qtdocparser.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/qtdocparser.cpp b/qtdocparser.cpp
index e15d438c..dd5cbbcd 100644
--- a/qtdocparser.cpp
+++ b/qtdocparser.cpp
@@ -45,10 +45,6 @@ void QtDocParser::fillDocumentation(AbstractMetaClass* metaClass)
}
QString filename = metaClass->qualifiedCppName().toLower().replace("::", "-");
- // Remove namespace
- if (context && context->isNamespace() && filename.startsWith(context->name(), Qt::CaseInsensitive)) {
- filename = filename.remove(0, context->name().size() + 1);
- }
QString sourceFile = documentationDataDirectory() + '/' + filename + ".xml";
if (metaClass->enclosingClass())
sourceFile.replace("::", "-");
@@ -67,7 +63,7 @@ void QtDocParser::fillDocumentation(AbstractMetaClass* metaClass)
// Class/Namespace documentation
QString type = metaClass->isNamespace() ? QLatin1String("namespace") : QLatin1String("class");
- QString query = "/WebXML/document/" + type + "[@" + "name" + "=\"" + className + "\"]/description";
+ QString query = "/WebXML/document/" + type + "[@name=\"" + className + "\"]/description";
DocModificationList signedModifs, classModifs;
foreach (DocModification docModif, metaClass->typeEntry()->docModifications()) {