diff options
author | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2019-09-20 10:15:03 +0200 |
---|---|---|
committer | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2019-09-25 15:50:32 +0200 |
commit | 35bc1078b4c130cd24282ce6c770c195b1cfd76f (patch) | |
tree | 010c384ce11380509dbc44dc15db42eeef42acd7 | |
parent | df9bd424b12e65b0ee40383c31d0154f8295300d (diff) |
Shiboken: Add check for 'external' link type
Apparently, qdoc generates <link...> entries
with 'external' type, which is ignored by Shiboken.
This leads to treating such links as reference
links, leading to broken links in the HTML output.
Change-Id: I426f91661ba1cc0b0f17b2e30fbddcf9e1fee530
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r-- | sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp b/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp index 9cad400f3..dd29c02f0 100644 --- a/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp +++ b/sources/shiboken2/generator/qtdoc/qtdocgenerator.cpp @@ -1023,6 +1023,8 @@ QtXmlToSphinx::LinkContext *QtXmlToSphinx::handleLinkStart(const QString &type, result->type = LinkContext::External; else result->type = LinkContext::Reference; + } else if (type == QLatin1String("external")) { + result->type = LinkContext::External; } else { result->type = LinkContext::Reference; } |