summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2010-11-04 12:59:42 (GMT)
committerDavid Boddie <david.boddie@nokia.com>2010-11-04 12:59:42 (GMT)
commit7151ff10f7e2d3b8e92e9cfec8d5c8655bf21525 (patch)
treeb58dd80b3d9a07b2c77c0fb8de834b6b3581ab1d /tools
parente6150729cba24fb50195606666105e8962b52a3a (diff)
downloadQt-7151ff10f7e2d3b8e92e9cfec8d5c8655bf21525.zip
Qt-7151ff10f7e2d3b8e92e9cfec8d5c8655bf21525.tar.gz
Qt-7151ff10f7e2d3b8e92e9cfec8d5c8655bf21525.tar.bz2
qdoc: Remove leading QML: text from certain node names.
Reviewed-by: Martin Smith
Diffstat (limited to 'tools')
-rw-r--r--tools/qdoc3/htmlgenerator.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp
index fb04175..1b89e97 100644
--- a/tools/qdoc3/htmlgenerator.cpp
+++ b/tools/qdoc3/htmlgenerator.cpp
@@ -3719,7 +3719,11 @@ void HtmlGenerator::findAllClasses(const InnerNode *node)
(*c)->subType() == Node::QmlClass &&
!(*c)->doc().isEmpty()) {
QString qmlClassName = (*c)->name();
- qmlClasses.insert(qmlClassName,*c);
+ // Remove the "QML:" prefix if present.
+ if (qmlClassName.startsWith(QLatin1String("QML:")))
+ qmlClasses.insert(qmlClassName.mid(4),*c);
+ else
+ qmlClasses.insert(qmlClassName,*c);
}
else if ((*c)->isInnerNode()) {
findAllClasses(static_cast<InnerNode *>(*c));