aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/scriptConnect.2.qml
blob: cdf2d6ad98d9cb14d8b486b3161e0a6b8b932018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import Qt.test 1.0
import QtQuick 2.0
import "scriptConnect.2.js" as Script

MyQmlObject { 
    property bool test: false

    id: root
    
    Component.onCompleted: {
        var a = new Object;
        a.b = 12;
        root.argumentSignal.connect(a, Script.testFunction);
    }
}