diff options
author | Martin Smith <martin.smith@nokia.com> | 2010-08-25 13:42:16 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2010-08-25 13:42:16 (GMT) |
commit | 002c89aeb44c805d642be2d4e4a19422be877bc2 (patch) | |
tree | be9c2501d22c5e266055527c7ed333c50d85001c /tools/qdoc3/htmlgenerator.cpp | |
parent | 35e1c730c25d9e5c1af9715072754126e4b3c0c1 (diff) | |
download | Qt-002c89aeb44c805d642be2d4e4a19422be877bc2.zip Qt-002c89aeb44c805d642be2d4e4a19422be877bc2.tar.gz Qt-002c89aeb44c805d642be2d4e4a19422be877bc2.tar.bz2 |
qdoc: Fixed erroneous links to QML basic types.
Task-nr: QTBUG-13096
Diffstat (limited to 'tools/qdoc3/htmlgenerator.cpp')
-rw-r--r-- | tools/qdoc3/htmlgenerator.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index 698b516..bc71b6e 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -3177,7 +3177,14 @@ QString HtmlGenerator::highlightedCode(const QString& markedCode, if (parseArg(src, typeTag, &i, srcSize, &arg, &par1)) { par1 = QStringRef(); const Node* n = marker->resolveTarget(arg.toString(), myTree, relative, self); - addLink(linkForNode(n,relative), arg, &html); + if (n && n->subType() == Node::QmlBasicType) { + if (relative && relative->subType() == Node::QmlClass) + addLink(linkForNode(n,relative), arg, &html); + else + html += arg.toString(); + } + else + addLink(linkForNode(n,relative), arg, &html); handled = true; } else if (parseArg(src, headerTag, &i, srcSize, &arg, &par1)) { @@ -3539,7 +3546,7 @@ QString HtmlGenerator::linkForNode(const Node *node, const Node *relative) return QString(); if (node->access() == Node::Private) return QString(); - + fn = fileName(node); /* if (!node->url().isEmpty()) return fn;*/ |