aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-05-17 12:29:07 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-05-17 14:58:05 +0000
commita6f4489282b10253ef2d15d163ecbddd7c193ff2 (patch)
treee6c417ce2116b541259288a836e46a2b4f158420
parent2503b0bf10ede9390c0720cccf76a495b4c1bd5a (diff)
Documentation: Fix failure extracting docs for functions with QVariant::Type
QVariant::Type is a primitive type, yet the fully qualified name should be used. Remove check for primitive types and always use the qualified name for building the doc XQuery. Change-Id: I8d12cf7d3095ce9e7baa2b6436cc90385bdedc22 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--sources/shiboken2/ApiExtractor/qtdocparser.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/sources/shiboken2/ApiExtractor/qtdocparser.cpp b/sources/shiboken2/ApiExtractor/qtdocparser.cpp
index abcd2ced5..b312c3d30 100644
--- a/sources/shiboken2/ApiExtractor/qtdocparser.cpp
+++ b/sources/shiboken2/ApiExtractor/qtdocparser.cpp
@@ -48,9 +48,6 @@ static void formatFunctionArgTypeQuery(QTextStream &str, const AbstractMetaArgum
if (metaType->isConstant())
str << "const " ;
switch (metaType->typeUsagePattern()) {
- case AbstractMetaType::PrimitivePattern:
- str << metaType->name();
- break;
case AbstractMetaType::FlagsPattern: {
// Modify qualified name "QFlags<Qt::AlignmentFlag>" with name "Alignment"
// to "Qt::Alignment" as seen by qdoc.