Refactor singleton type registration code
[profile/ivi/qtdeclarative.git] / tests / auto / qml / qqmlecmascript / data / singletontype / qobjectSingletonTypeCaching.qml
1 import QtQuick 2.0
2
3 import Qt.test 1.0 as QtTest                                      // singleton Type installed into existing uri
4 import Qt.test.qobjectApiParented 1.0 as QtTestParentedQObjectApi // qobject (with parent) singleton Type installed into a new uri
5
6 QtObject {
7     property int existingUriTest: QtTest.QObject.qobjectTestWritableProperty
8     property int qobjectParentedTest: QtTestParentedQObjectApi.QObject.qobjectTestWritableProperty
9
10     function modifyValues() {
11         QtTest.QObject.qobjectTestWritableProperty = 50;
12         QtTestParentedQObjectApi.QObject.qobjectTestWritableProperty = 65;
13     }
14 }
15