Clean up and extend QAccessible::State.
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>
Thu, 5 Jan 2012 17:03:04 +0000 (18:03 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 16 Jan 2012 07:55:37 +0000 (08:55 +0100)
commitba888bb8c8e6fce76efc855ef81250f2c9426b40
tree6ce3941c3203b7e6cdc50ed9d9c5aaeea76b8de1
parent169b9cac648a4c15ae825b815a18236d95d62c6f
Clean up and extend QAccessible::State.

The state should contain useful and clear information.
Some of the old enum/bitfield members were not really clear.
Make them follow Qt terminology and shift the burden of interpreting
them to the bridge.

Apart from the previous commit changing from enum to bitfield, these
flags have changed names:

unavailable -> disabled
mixed -> checkStateMixed
protected -> passwordEdit (in the last commit)

floating is completely removed, even MSAA documentation states it is unsupported.

Some new states have been added.
Documentation added.

Change-Id: I152256e77a061f28ee5780f527524c80a2c7e333
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
src/gui/accessible/qaccessible.cpp
src/gui/accessible/qaccessible.h
src/plugins/accessible/widgets/qaccessiblemenu.cpp
src/plugins/accessible/widgets/qaccessiblewidgets.cpp
src/plugins/accessible/widgets/simplewidgets.cpp
src/plugins/platforms/windows/qwindowsaccessibility.cpp
src/widgets/accessible/qaccessiblewidget.cpp
tests/auto/other/qaccessibility/tst_qaccessibility.cpp