blob: ab8ecbf32df918054a0288a61aa0a74cd553deb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright (C) 2017 Ford Motor Company
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick 2.11
import Test 1.0
Item {
id: root
property int clicked: 0
property int pressed: 0
property int released: 0
width: 200; height: 200
MouseArea {
id: mouseArea
width: 200; height: 200
onPressed: { root.pressed++ }
onClicked: { root.clicked++ }
onReleased: { root.released++ }
containmentMask: CircleMask {
radius: mouseArea.width/2
}
}
}
|