aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2012-03-20 20:07:50 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-22 09:15:25 +0100
commitc3babc03c99c6ca5fa210486e133eb456a405bab (patch)
tree3f545e5daa5308bdc6a74773f82055c1e3884caa /src
parent392b078c78b265ee636e57fca01eebd69f262985 (diff)
Adapt to QMetaMethod::typeName() behavioral change for "void"
QMetaMethod::typeName() has been changed to return "void", rather than an empty string, when the return type is void. Change-Id: Ifc903ba60a06ffaefe27c94fe629698d64904d94 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/qml/qml/qqmlpropertycache.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlpropertycache.cpp b/src/qml/qml/qqmlpropertycache.cpp
index af6cd9285b..afab665ea4 100644
--- a/src/qml/qml/qqmlpropertycache.cpp
+++ b/src/qml/qml/qqmlpropertycache.cpp
@@ -196,10 +196,11 @@ void QQmlPropertyData::lazyLoad(const QMetaMethod &m)
flags |= IsFunction;
if (m.methodType() == QMetaMethod::Signal)
flags |= IsSignal;
- propType = QVariant::Invalid;
+ propType = QMetaType::Void;
const char *returnType = m.typeName();
- if (returnType && *returnType) {
+ Q_ASSERT(returnType != 0);
+ if ((*returnType != 'v') || (qstrcmp(returnType+1, "oid") != 0)) {
propTypeName = returnType;
flags |= NotFullyResolved;
}