Fix invocation of QQmlV4Functions in JS/QML
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 13 May 2013 14:24:40 +0000 (16:24 +0200)
committerLars Knoll <lars.knoll@digia.com>
Wed, 15 May 2013 21:38:51 +0000 (23:38 +0200)
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 <lars.knoll@digia.com>
src/qml/qml/qqmlpropertycache.cpp

index bcfc901..55ecdff 100644 (file)
@@ -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;
         }
     }