summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCasper van Donderen <casper.vandonderen@nokia.com>2012-03-29 05:32:37 +0200
committerQt by Nokia <qt-info@nokia.com>2012-03-29 18:27:26 +0200
commitc8f7677596603426100670c2ab767da17b711819 (patch)
treedf03d61d551462bf149e2f75f9177ffd9cabcfe3 /src
parent9d37235bdd5bc0fefcd12a2fed3ad6e55b671388 (diff)
QDoc: pre-/append qmlmodule/module to distinguish names.
It is possible that a \qmlmodule and \module have the same name. This would then cause a conflict, since both of the output pages would have the same name. This change make sure that C++ modules (\module) output pages are appended with -module and that QML modules (\qmlmodule) are prepended with qmlmodule-. Change-Id: I2ce352f05ff388469fd02458354154dbf8b7b0db Reviewed-by: Martin Smith <martin.smith@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/tools/qdoc/generator.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/qdoc/generator.cpp b/src/tools/qdoc/generator.cpp
index 97ab5652ae..623c0a299a 100644
--- a/src/tools/qdoc/generator.cpp
+++ b/src/tools/qdoc/generator.cpp
@@ -293,6 +293,13 @@ QString Generator::fileBase(const Node *node) const
//Was QDOC2_COMPAT, required for index.html
if (base.endsWith(".html"))
base.truncate(base.length() - 5);
+
+ if (node->subType() == Node::QmlModule) {
+ base.prepend("qmlmodule-");
+ }
+ if (node->subType() == Node::Module) {
+ base.append("-module");
+ }
}
// the code below is effectively equivalent to: