aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/parser/codemodel.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-03-06 18:10:17 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-03-06 18:10:17 +0100
commitb94112ea6c60ed9a4990bcfe4a8ad0a96e90aecd (patch)
tree60417ebf06b1e4ec63fb8fccac2ac0e4070917f0 /sources/shiboken2/ApiExtractor/parser/codemodel.cpp
parenta7d32524b22fd8ac491d0624d91d828593936d6e (diff)
parent6baf94735ff683adb4233825a8b0adbd68e9ed8a (diff)
Merge remote-tracking branch 'origin/5.14' into 5.15
Diffstat (limited to 'sources/shiboken2/ApiExtractor/parser/codemodel.cpp')
-rw-r--r--sources/shiboken2/ApiExtractor/parser/codemodel.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/parser/codemodel.cpp b/sources/shiboken2/ApiExtractor/parser/codemodel.cpp
index 892a20bb7..c87dd0174 100644
--- a/sources/shiboken2/ApiExtractor/parser/codemodel.cpp
+++ b/sources/shiboken2/ApiExtractor/parser/codemodel.cpp
@@ -1137,6 +1137,20 @@ void _FunctionModelItem::setInvokable(bool isInvokable)
m_isInvokable = isInvokable;
}
+QString _FunctionModelItem::typeSystemSignature() const // For dumping out type system files
+{
+ QString result;
+ QTextStream str(&result);
+ str << name() << '(';
+ for (int a = 0, size = m_arguments.size(); a < size; ++a) {
+ if (a)
+ str << ',';
+ str << m_arguments.at(a)->type().qualifiedName().join(QLatin1String("::"));
+ }
+ str << ')';
+ return result;
+}
+
#ifndef QT_NO_DEBUG_STREAM
void _FunctionModelItem::formatDebug(QDebug &d) const
{