aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick1/qdeclarativemousearea/data/clicktwice.qml
blob: c6b1f8992aa598d14fd7a59896f5c02128789434 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import QtQuick 1.0

Item {
    id: root
    property int clicked: 0
    property int pressed: 0
    property int released: 0

    MouseArea {
        width: 200; height: 200
        onPressed: { root.pressed++ }
        onClicked: { root.clicked++ }
        onReleased: { root.released++ }
    }
}