aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/data/objectMethodClone.qml
blob: e21179ea146358f658eaaa1c1f19b150d1cfee67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import QtQml

QtObject {
    id: window

    property int doneClicks: 0

    property UIToolBar t1: UIToolBar {
        objectName: window.objectName
        onDoneClicked: window.doneClicks++
    }

    property UIToolBar t2: UIToolBar {
        objectName: window.objectName
        onDoneClicked: window.doneClicks++
    }

    property Timer timer: Timer {
        interval: 10
        running: true
        onTriggered: window.objectName = "bar"
    }
}