Implemented QAccessibleTextWidget
authorJan-Arve Saether <jan-arve.saether@nokia.com>
Wed, 8 Aug 2012 14:06:33 +0000 (16:06 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 14 Aug 2012 01:56:55 +0000 (03:56 +0200)
commit2cb9ded6eca80aa0852ddfefaf6899ccb913c556
treeb0043d91d9d602c449341a271681630bb670c097
parent59117012f27355830ceda4fc7f9e5f637d07fcc9
Implemented QAccessibleTextWidget

A new class called QAccessibleTextWidget was added.
This class should implement all methods of QAccessibleTextInterface and
QAccessibleEditableTextInterface which only need a QTextCursor, and it
defines two pure virtual methods, to obtain and set the text cursor, so
accessible implementations of widgets which use a text cursor can implement
these two methods.

QAccessibleTextEdit is now a subclass of QAccessibleTextWidget and most of
its methods were moved to QAccessibleTextWidget.

This is a forward port of ba5d7d608cc31fc63354fd74d85a1bad7780fc45 from
Qt 4.8, and is a prerequisite for forward-porting QPlainTextEdit

Change-Id: I6093c4fa7e0a77b84de779479c6074db006efec1
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
src/plugins/accessible/widgets/qaccessiblewidgets.cpp
src/plugins/accessible/widgets/qaccessiblewidgets.h
tests/auto/other/qaccessibility/tst_qaccessibility.cpp