Set the context explicit for a property in the property change

Reviewed-by: kkoehne
Task-Number: BAUHAUS-573
This commit is contained in:
Marco Bubke
2010-04-12 14:49:20 +02:00
committed by Kai Koehne
parent 4a89a077dd
commit e34ae97df9

View File

@@ -119,7 +119,7 @@ void QmlPropertyChangesObject::setIsExplicit(bool isExplicit)
QDeclarativeProperty QmlPropertyChangesObject::createMetaProperty(const QString &property) 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()) { if (!prop.isValid()) {
qWarning() << "Cannot assign to non-existent property" << property; qWarning() << "Cannot assign to non-existent property" << property;
return QDeclarativeProperty(); return QDeclarativeProperty();