diff options
author | David Boddie <david.boddie@nokia.com> | 2010-11-04 12:59:42 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2010-11-04 12:59:42 (GMT) |
commit | 7151ff10f7e2d3b8e92e9cfec8d5c8655bf21525 (patch) | |
tree | b58dd80b3d9a07b2c77c0fb8de834b6b3581ab1d /tools | |
parent | e6150729cba24fb50195606666105e8962b52a3a (diff) | |
download | Qt-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.cpp | 6 |
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)); |