diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-04-17 12:55:11 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-04-19 10:53:35 +0000 |
commit | 3d075800adbd0d3709656cacab10461a9d13db69 (patch) | |
tree | eb6096304c6498088a31ebf56a6c9f8c9e8f30bf /sources/shiboken2/ApiExtractor | |
parent | a95caec6d97025d5d69197fddfebb024fb276d61 (diff) |
shiboken: Fix XQuery for the module description
Fix "page" to "module" to match:
<WebXML>
<document>
<module name="QtCore"
<description...
Task-number: PYSIDE-363
Change-Id: Ifcb6182af7e119356fcc5d937a0f1beda6c5fe47
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor')
-rw-r--r-- | sources/shiboken2/ApiExtractor/qtdocparser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/shiboken2/ApiExtractor/qtdocparser.cpp b/sources/shiboken2/ApiExtractor/qtdocparser.cpp index 4ba683cc6..85c3473cd 100644 --- a/sources/shiboken2/ApiExtractor/qtdocparser.cpp +++ b/sources/shiboken2/ApiExtractor/qtdocparser.cpp @@ -229,7 +229,8 @@ Documentation QtDocParser::retrieveModuleDocumentation(const QString& name) xquery.setFocus(QUrl(sourceFile)); // Module documentation - QString query = QLatin1String("/WebXML/document/page[@name=\"") + moduleName + QLatin1String("\"]/description"); + QString query = QLatin1String("/WebXML/document/module[@name=\"") + + moduleName + QLatin1String("\"]/description"); const Documentation doc = getDocumentation(xquery, query, DocModificationList()); if (doc.isEmpty()) qCWarning(lcShiboken(), "%s", qPrintable(msgCannotFindDocumentation(sourceFile, "module", name, query))); |