blob: 22cdad13772a17637be1be06072ece0095889430 (
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
|
import QtQuick 2.0
Item {
width: 400
height: 400
// button, not checkable
Rectangle {
y: 20
width: 100; height: 20
Accessible.role : Accessible.Button
}
// button, checkable, not checked
Rectangle {
y: 40
width: 100; height: 20
Accessible.role : Accessible.Button
property bool checkable: true
property bool checked: false
}
// button, checkable, checked
Rectangle {
y: 60
width: 100; height: 20
Accessible.role : Accessible.Button
property bool checkable: true
property bool checked: true
}
// check box, checked
Rectangle {
y: 80
width: 100; height: 20
Accessible.role : Accessible.CheckBox
property bool checked: true
}
// check box, not checked
Rectangle {
y: 100
width: 100; height: 20
Accessible.role : Accessible.CheckBox
property bool checked: false
}
}
|