Accessibility: Checked state for check boxes and radio buttons.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativeaccessibility / data / checkbuttons.qml
1 import QtQuick 2.0
2
3 Item {
4     width: 400
5     height: 400
6
7     // button, not checkable
8     Rectangle {
9         y: 20
10         width: 100; height: 20
11         Accessible.role : Accessible.Button
12     }
13
14     // button, checkable, not checked
15     Rectangle {
16         y: 40
17         width: 100; height: 20
18         Accessible.role : Accessible.Button
19         property bool checkable: true
20         property bool checked: false
21     }
22
23     // button, checkable, checked
24     Rectangle {
25         y: 60
26         width: 100; height: 20
27         Accessible.role : Accessible.Button
28         property bool checkable: true
29         property bool checked: true
30     }
31
32     // check box, checked
33     Rectangle {
34         y: 80
35         width: 100; height: 20
36         Accessible.role : Accessible.CheckBox
37         property bool checked: true
38     }
39     // check box, not checked
40     Rectangle {
41         y: 100
42         width: 100; height: 20
43         Accessible.role : Accessible.CheckBox
44         property bool checked: false
45     }
46 }
47