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

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

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