aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.cpp
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 /abstractmetalang.cpp
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 'abstractmetalang.cpp')
-rw-r--r--abstractmetalang.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/abstractmetalang.cpp b/abstractmetalang.cpp
index 13942f769..db6e1b3e6 100644
--- a/abstractmetalang.cpp
+++ b/abstractmetalang.cpp
@@ -305,7 +305,7 @@ QStringList AbstractMetaFunction::introspectionCompatibleSignatures(const QStrin
{
AbstractMetaArgumentList arguments = this->arguments();
if (arguments.size() == resolvedArguments.size()) {
- return (QStringList() << QMetaObject::normalizedSignature((name() + "(" + resolvedArguments.join(",") + ")").toUtf8().constData()));
+ return (QStringList() << TypeDatabase::normalizedSignature((name() + "(" + resolvedArguments.join(",") + ")").toUtf8().constData()));
} else {
QStringList returned;
@@ -669,7 +669,7 @@ QString AbstractMetaFunction::minimalSignature() const
if (isConstant())
minimalSignature += "const";
- minimalSignature = QMetaObject::normalizedSignature(minimalSignature.toLocal8Bit().constData());
+ minimalSignature = TypeDatabase::normalizedSignature(minimalSignature.toLocal8Bit().constData());
m_cachedMinimalSignature = minimalSignature;
return minimalSignature;