forked from qt-creator/qt-creator
Set the context explicit for a property in the property change
Reviewed-by: kkoehne Task-Number: BAUHAUS-573
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user