diff options
author | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2019-11-25 12:57:05 +0100 |
---|---|---|
committer | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2019-11-25 21:53:31 +0100 |
commit | 6341e81149599e68bcd99b6b4f617fbe3b470e05 (patch) | |
tree | ebf92b95c37e6e564992839ee8fe83b1c3ce32fa | |
parent | 69d511949fdf1da8309c9adab8b00ed6f80053a0 (diff) |
Shiboken: QtDoc: Fix the new filename logic for the extras found
Otherwise, the extras are never copied to the respective module
directories, resulting in no HTMLs for them.
Change-Id: Ibb509178bde9cf2477c3791ee56da1affbe4d74e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r-- | sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp b/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp index de023f079..ca9f9b3ae 100644 --- a/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp +++ b/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp @@ -2209,7 +2209,7 @@ void QtDocGenerator::writeModuleDocumentation() QStringList::iterator it2 = fileList.begin(); for (; it2 != fileList.end(); ++it2) { QString origFileName(*it2); - it2->remove(0, it.key().count() + 1); + it2->remove(0, moduleName.indexOf(QLatin1Char('.'))); QString newFilePath = outputDir + QLatin1Char('/') + *it2; if (QFile::exists(newFilePath)) QFile::remove(newFilePath); |