summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativemousearea/data/doubleclick.qml
blob: 9cddf1bb911194f9dc51e6e6ef7a80ca612aa110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import Qt 4.7

Item {
    id: root
    property int clicked: 0
    property int doubleClicked: 0

    MouseArea {
        width: 200; height: 200
        onClicked: { root.clicked++ }
        onDoubleClicked: { root.doubleClicked++ }
    }
}