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

Item {
    id: root
    property bool clicked: false
    property bool held: false

    MouseArea {
        width: 200; height: 200
        onClicked: { root.clicked = true }
        onPressAndHold: { root.held = true }
    }
}