aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-12-15 19:55:10 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-12-16 12:29:57 -0300
commitf2fd366c90dd64a37f48e5ea554b8aebf00b6de5 (patch)
treeff48419993f22c42d9d52e58a1e92569a766aa7c /typesystem.h
parentcb253eb807d15586a12f5de86fd716286ed3b15d (diff)
Adds normalizedSignature static method to TypeDatabase.
All the uses of QMetaObject::normalizedSignature were replaced to use TypeDatabase::normalizedSignature; the former always changes the unsigned primitives to the shorter versions (e.g. "unsigned int" becomes "uint") that aren't necessarily used by the parsed library. The new normalizer changes back "uNUMBER" to "unsigned NUMBER" if the former is not present in the TypeDatabase. Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'typesystem.h')
-rw-r--r--typesystem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/typesystem.h b/typesystem.h
index 2c9be3e3..28a3cb85 100644
--- a/typesystem.h
+++ b/typesystem.h
@@ -1754,6 +1754,8 @@ public:
*/
static TypeDatabase *instance(bool newInstance = false);
+ static QString normalizedSignature(const char* signature);
+
QStringList requiredTargetImports()
{
return m_requiredTargetImports;