aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/abstractmetalang.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-06-30 10:41:10 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2017-07-11 13:13:38 +0000
commitcf2e7fb4ad3353fadc2a8a1efadd813a122c1d50 (patch)
tree00d6186e824a49f8467fd6dbedf448325c633dd6 /sources/shiboken2/ApiExtractor/abstractmetalang.h
parent1c5a5cc67d8f80bd542a166b6861a234529c5c43 (diff)
AbstractMetaType: Join the signature functions
Introduce a common helper function to format the signature for minimalSignature() / cppSignature() which differ only by whitespace. Task-number: PYSIDE-354 Task-number: PYSIDE-516 Change-Id: Ife6be7001618d73a7a2bc15e91bff4ae42192a45 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/abstractmetalang.h')
-rw-r--r--sources/shiboken2/ApiExtractor/abstractmetalang.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/shiboken2/ApiExtractor/abstractmetalang.h b/sources/shiboken2/ApiExtractor/abstractmetalang.h
index a16f79c30..921df4300 100644
--- a/sources/shiboken2/ApiExtractor/abstractmetalang.h
+++ b/sources/shiboken2/ApiExtractor/abstractmetalang.h
@@ -388,7 +388,7 @@ public:
return hasInstantiations() && m_cppInstantiation;
}
- QString minimalSignature() const;
+ QString minimalSignature() const { return formatSignature(true); }
// true when the type is a QtJambiObject subclass
bool hasNativeId() const;
@@ -613,6 +613,7 @@ public:
private:
TypeUsagePattern determineUsagePattern() const;
+ QString formatSignature(bool minimal) const;
const TypeEntry *m_typeEntry;
AbstractMetaTypeList m_instantiations;