From: Simon Hausmann Date: Mon, 13 May 2013 14:24:40 +0000 (+0200) Subject: Fix invocation of QQmlV4Functions in JS/QML X-Git-Tag: upstream/5.2.1~669^2~481 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=738b5861ed39eb12bf6bdd96f24d18232e8406a3;p=platform%2Fupstream%2Fqtdeclarative.git Fix invocation of QQmlV4Functions in JS/QML After the renaming of the class we also need to fix the two places where we refer to the type by name. Change-Id: I3c446cb31c2ecfc457f161f6b5cd7e30f44b2227 Reviewed-by: Lars Knoll --- diff --git a/src/qml/qml/qqmlpropertycache.cpp b/src/qml/qml/qqmlpropertycache.cpp index bcfc901..55ecdff 100644 --- a/src/qml/qml/qqmlpropertycache.cpp +++ b/src/qml/qml/qqmlpropertycache.cpp @@ -196,7 +196,7 @@ void QQmlPropertyData::load(const QMetaMethod &m) if (m.parameterCount()) { flags |= HasArguments; - if ((m.parameterCount() == 1) && (m.parameterTypes().first() == "QQmlV8Function*")) { + if ((m.parameterCount() == 1) && (m.parameterTypes().first() == "QQmlV4Function*")) { flags |= IsV8Function; } } @@ -227,7 +227,7 @@ void QQmlPropertyData::lazyLoad(const QMetaMethod &m) if (m.parameterCount()) { flags |= HasArguments; - if ((m.parameterCount() == 1) && (m.parameterTypes().first() == "QQmlV8Function*")) { + if ((m.parameterCount() == 1) && (m.parameterTypes().first() == "QQmlV4Function*")) { flags |= IsV8Function; } }