diff options
author | Martin Smith <martin.smith@nokia.com> | 2010-07-07 12:21:55 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2010-07-07 12:21:55 (GMT) |
commit | 896de79554060aadf4963d8285ef3f5d8740428b (patch) | |
tree | a6ef96517ec9977bf97131a43f62a3cd68feeebf /tools/qdoc3/htmlgenerator.cpp | |
parent | 047dd2d73fab867187d17f684be464233f64165b (diff) | |
download | Qt-896de79554060aadf4963d8285ef3f5d8740428b.zip Qt-896de79554060aadf4963d8285ef3f5d8740428b.tar.gz Qt-896de79554060aadf4963d8285ef3f5d8740428b.tar.bz2 |
qdoc: Fixed a few links to QtObject (QML:QtObject)
Diffstat (limited to 'tools/qdoc3/htmlgenerator.cpp')
-rw-r--r-- | tools/qdoc3/htmlgenerator.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index b7ab4d6..441cfc6 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -4197,7 +4197,10 @@ void HtmlGenerator::generateQmlInstantiates(const QmlClassNode* qcn, text << "["; text << Atom(Atom::LinkNode,CodeMarker::stringForNode(qcn)); text << Atom(Atom::FormattingLeft, ATOM_FORMATTING_LINK); - text << Atom(Atom::String, qcn->name()); + QString name = qcn->name(); + if (name.startsWith(QLatin1String("QML:"))) + name = name.mid(4); // remove the "QML:" prefix + text << Atom(Atom::String, name); text << Atom(Atom::FormattingRight, ATOM_FORMATTING_LINK); text << " instantiates the C++ class "; text << Atom(Atom::LinkNode,CodeMarker::stringForNode(cn)); |