summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/scriptConnect.1.qml
blob: 2bdd70692232d48ac6b2c9d9fe0428040c5fc57e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import Qt.test 1.0
import Qt 4.6

MyQmlObject { 
    property bool test: false

    id: root
    
    Script {
        function testFunction() {
            test = true;
        }
    }

    Component.onCompleted: root.argumentSignal.connect(testFunction);
}