aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/singletontype/scriptSingletonTypeCaching.qml
blob: 81ba9a66e41925e25056cd6141fb4eaa96ca8823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import QtQuick 2.0
import Qt.test.scriptApi 1.0 as QtTestScriptApi                   // script singleton Type installed into new uri

QtObject {
    property int scriptTest: QtTestScriptApi.Script.scriptTestProperty

    function modifyValues() {
        // the constructor function of the script singleton will modify
        // the value if it were called again (via the static int increment).
        // So, we don't need to do anything in this function.
    }
}