From e34ae97df94dbd3863c13b261e31fd826de99f1b Mon Sep 17 00:00:00 2001 From: Marco Bubke <marco.bubke@nokia.com> Date: Mon, 12 Apr 2010 14:49:20 +0200 Subject: [PATCH] Set the context explicit for a property in the property change Reviewed-by: kkoehne Task-Number: BAUHAUS-573 --- .../core/instances/qmlpropertychangesnodeinstance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/core/instances/qmlpropertychangesnodeinstance.cpp b/src/plugins/qmldesigner/core/instances/qmlpropertychangesnodeinstance.cpp index 67e7538a3f1..514ea751674 100644 --- a/src/plugins/qmldesigner/core/instances/qmlpropertychangesnodeinstance.cpp +++ b/src/plugins/qmldesigner/core/instances/qmlpropertychangesnodeinstance.cpp @@ -119,7 +119,7 @@ void QmlPropertyChangesObject::setIsExplicit(bool isExplicit) QDeclarativeProperty QmlPropertyChangesObject::createMetaProperty(const QString &property) { - QDeclarativeProperty prop(m_targetObject.data(), property); + QDeclarativeProperty prop(m_targetObject.data(), property, QDeclarativeEngine::contextForObject(m_targetObject.data())); if (!prop.isValid()) { qWarning() << "Cannot assign to non-existent property" << property; return QDeclarativeProperty(); -- GitLab