Skip to content

Commit

Permalink
propagate properties of component root objects to outer context
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelvasev committed Aug 4, 2015
1 parent 871fbf0 commit 561b202
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/qtcore.js
Expand Up @@ -554,8 +554,11 @@ function createSimpleProperty(type, obj, propName) {
return obj.$properties[propName].set(newVal, QMLProperty.ReasonUser);
};
setupGetterSetter(obj, propName, getter, setter);
if (obj.$isComponentRoot)
if (obj.$isComponentRoot) {
setupGetterSetter(obj.$context, propName, getter, setter);
if (obj.$context.__proto__)
setupGetterSetter(obj.$context.__proto__, propName, getter, setter);
}
}

function QMLProperty(type, obj, name) {
Expand Down

0 comments on commit 561b202

Please sign in to comment.