summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlpropertycache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qmlpropertycache.cpp')
-rw-r--r--src/declarative/qml/qmlpropertycache.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlpropertycache.cpp b/src/declarative/qml/qmlpropertycache.cpp
index b7a5fad..ff4991c 100644
--- a/src/declarative/qml/qmlpropertycache.cpp
+++ b/src/declarative/qml/qmlpropertycache.cpp
@@ -45,6 +45,8 @@
QT_BEGIN_NAMESPACE
+Q_DECLARE_METATYPE(QScriptValue);
+
void QmlPropertyCache::Data::load(const QMetaProperty &p)
{
propType = p.userType();
@@ -61,6 +63,8 @@ void QmlPropertyCache::Data::load(const QMetaProperty &p)
if (propType == qMetaTypeId<QmlBinding *>()) {
flags |= Data::IsQmlBinding;
+ } else if (propType == qMetaTypeId<QScriptValue>()) {
+ flags |= Data::IsQScriptValue;
} else if (p.isEnumType()) {
flags |= Data::IsEnumType;
} else {