Merge branch 'master' into qtquick2
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativeecmascript / data / scarceresources / scarceResourceTest.qml
1 import QtQuick 1.0
2 import Qt.test 1.0
3
4 // Here we import a scarce resource directly, and use it in a binding.
5 // It is not preserved or released manually, so it should be
6 // automatically released once evaluation of the binding
7 // is complete.
8
9 QtObject {
10     property MyScarceResourceObject a;
11     a: MyScarceResourceObject { id: scarceResourceProvider }
12     property int scarceResourceTest: scarceResourceProvider.scarceResource,100 // return 100, but include the scarceResource in the binding to be evaluated.
13 }
14