Use V4 binding for non-final properties where possible
[profile/ivi/qtdeclarative.git] / tests / auto / qml / qqmlecmascript / data / scarceResourceCopyFromJs.var.qml
1 import QtQuick 2.0
2 import Qt.test 1.0
3 import "scarceResourceTest.var.js" as ScarceResourceProviderJs
4
5 // Here we import a scarce resource directly, from JS module.
6 // It is not preserved or released manually, so it should be
7 // automatically released once evaluation of the binding
8 // is complete.
9
10 QtObject {
11     property MyScarceResourceObject a;
12     a: MyScarceResourceObject { id: scarceResourceProvider }
13     property var scarceResourceCopy: ScarceResourceProviderJs.importScarceResource(scarceResourceProvider)
14 }