Remove clipboard operations from QAccessibleEditableTextInterface
authorJan-Arve Saether <jan-arve.saether@nokia.com>
Wed, 7 Mar 2012 10:59:30 +0000 (11:59 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 11 Jul 2012 00:47:34 +0000 (02:47 +0200)
commit159b28d97226c9b40e3e47188396a17cee70852e
tree1abec302b1433a111a6df8127ce5a15ce88252ce
parent825cd7b9e5ac16546fe224d48e5ea319fc171248
Remove clipboard operations from QAccessibleEditableTextInterface

Also, remove its subclass QAccessibleSimpleEditableTextInterface

Instead of having the subclass that implements this conveniently,
we move this behaviour over to the bridge. The bridge should
check if role() == EditableText is set, and then it should try to
support the IAccessibleEditableText interface (i.e.
it should accept the calls to replaceText(), deleteText() and
insertText()) and change the text with the following operations:
1. Query the text using QAccessibleTextInterface::text() or by
   using QAccessibleInterface::text(QAccessible::Value) as a fallback
2. Do the requested delete/insert/replace manipulation
3. Update the text with setText(QAccessible::Value, newText);

Change-Id: Iee5e41faf14351951e2bfca8c9eac970a113e878
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
src/gui/accessible/qaccessible2.cpp
src/gui/accessible/qaccessible2.h
src/plugins/accessible/widgets/qaccessiblewidgets.cpp
src/plugins/accessible/widgets/qaccessiblewidgets.h
src/plugins/accessible/widgets/simplewidgets.cpp
src/plugins/accessible/widgets/simplewidgets.h
src/plugins/platforms/windows/accessible/comutils.h
src/plugins/platforms/windows/accessible/iaccessible2.cpp
src/plugins/platforms/windows/accessible/iaccessible2.h
tests/auto/other/qaccessibility/qaccessibility.pro
tests/auto/other/qaccessibility/tst_qaccessibility.cpp