Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Accessibility: Checked state for check boxes and radio buttons.
Also adapt to new api in qtbase - state is now a bit field. Change-Id: Ia4266f3d5094a6c32e0ace3499910b57c3e71c25 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
- Loading branch information
Frederik Gladhorn
authored and
Qt by Nokia
committed
Jan 10, 2012
1 parent
6ffcd09
commit 1b4897f
Showing
10 changed files
with
142 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
tests/auto/declarative/qdeclarativeaccessibility/data/checkbuttons.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters