diff options
author | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2012-02-05 22:41:34 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-03 02:13:33 (GMT) |
commit | edc6fae534835a2c72edffb52255fe522a37928f (patch) | |
tree | 4ea3d3534dbdf9b16e052c7271ff83e782ae29e3 | |
parent | bde025168953f2093c2b957ca978be90e8602de4 (diff) | |
download | Qt-edc6fae534835a2c72edffb52255fe522a37928f.zip Qt-edc6fae534835a2c72edffb52255fe522a37928f.tar.gz Qt-edc6fae534835a2c72edffb52255fe522a37928f.tar.bz2 |
Add accessible role Desktop.
Another role that is mostly needed to make Qt based desktops accessible.
Would be nice to have for KDE's Plasma in the future.
Change-Id: I1d2ce9d55d677f73cc59f0a3646ee5e588c1d948
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
-rw-r--r-- | src/gui/accessible/qaccessible.cpp | 2 | ||||
-rw-r--r-- | src/gui/accessible/qaccessible.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp index 0fa6686..50f5b50 100644 --- a/src/gui/accessible/qaccessible.cpp +++ b/src/gui/accessible/qaccessible.cpp @@ -333,6 +333,7 @@ QT_BEGIN_NAMESPACE \value ColumnHeader A header for a column of data. \value ComboBox A list of choices that the user can select from. \value Cursor An object that represents the mouse cursor. + \value Desktop The object represents the desktop or workspace. \value Dial An object that represents a dial or knob. \value Dialog A dialog box. \value Document A document window, usually in an MDI environment. @@ -370,6 +371,7 @@ QT_BEGIN_NAMESPACE \value StaticText Static text, such as labels for other widgets. \value StatusBar A status bar. \value Table A table representing data in a grid of rows and columns. + \value Terminal A terminal or command line interface. \value TitleBar The title bar caption of a window. \value ToolBar A tool bar, which groups widgets that the user accesses frequently. \value ToolTip A tool tip which provides information about other objects. diff --git a/src/gui/accessible/qaccessible.h b/src/gui/accessible/qaccessible.h index 2bb3877..2b6cd1d 100644 --- a/src/gui/accessible/qaccessible.h +++ b/src/gui/accessible/qaccessible.h @@ -252,6 +252,7 @@ public: // Additional Qt roles where enum value does not map directly to MSAA: LayeredPane = 0x0000003F, Terminal = 0x00000040, + Desktop = 0x00000041, UserRole = 0x0000ffff }; |