diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2014-12-30 11:54:59 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2015-01-02 21:10:50 +0100 |
commit | b9b12af83f121cdbc9bb1d3067bfb9e4ba923088 (patch) | |
tree | ea39babccfddd814647c6852b597cad771a7d0b9 /src/qml/qml/qqmlcontextwrapper.cpp | |
parent | 2056538feab7739689742de4efe370b35864bc9a (diff) |
Remove v8engine dependency in fromVariant conversions
Change-Id: I3427129dc7a0e68c8fa0b61f353835e2bee179a0
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlcontextwrapper.cpp')
-rw-r--r-- | src/qml/qml/qqmlcontextwrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlcontextwrapper.cpp b/src/qml/qml/qqmlcontextwrapper.cpp index 98b72c61b1..bcab5c84d6 100644 --- a/src/qml/qml/qqmlcontextwrapper.cpp +++ b/src/qml/qml/qqmlcontextwrapper.cpp @@ -231,7 +231,7 @@ ReturnedValue QmlContextWrapper::get(Managed *m, String *name, bool *hasProperty QQmlContextPrivate::context_at); return QmlListWrapper::create(v4, prop, qMetaTypeId<QQmlListProperty<QObject> >()); } else { - return engine->fromVariant(cp->propertyValues.at(propertyIdx)); + return QV8Engine::fromVariant(scope.engine, cp->propertyValues.at(propertyIdx)); } } } |