blob: edb56ffdc626f74af4c2f1511b7295a33e9682a0 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
import QtQuick
Item {
width: 200; height: 200
HoverHandler {
objectName: "stylus"
acceptedDevices: PointerDevice.Stylus
acceptedPointerTypes: PointerDevice.Pen
cursorShape: Qt.CrossCursor
}
HoverHandler {
objectName: "stylus eraser"
acceptedDevices: PointerDevice.Stylus
acceptedPointerTypes: PointerDevice.Eraser
cursorShape: Qt.PointingHandCursor
}
HoverHandler {
objectName: "airbrush"
acceptedDevices: PointerDevice.Airbrush
acceptedPointerTypes: PointerDevice.Pen
cursorShape: Qt.BusyCursor
}
HoverHandler {
objectName: "airbrush eraser"
acceptedDevices: PointerDevice.Airbrush
acceptedPointerTypes: PointerDevice.Eraser
cursorShape: Qt.OpenHandCursor
}
HoverHandler {
objectName: "mouse"
acceptedDevices: PointerDevice.Mouse
// acceptedPointerTypes can be omitted because Mouse is not ambiguous.
// When a genuine mouse move is sent, there's a conflict, and this one should win.
cursorShape: Qt.IBeamCursor
}
HoverHandler {
objectName: "conflictingMouse"
acceptedDevices: PointerDevice.Mouse
// acceptedPointerTypes can be omitted because Mouse is not ambiguous.
// When a genuine mouse move is sent, there's a conflict, and this one should lose.
cursorShape: Qt.ClosedHandCursor
}
}
|