diff options
author | Kurt Korbatits <kurt.korbatits@nokia.com> | 2009-10-21 04:32:32 (GMT) |
---|---|---|
committer | Kurt Korbatits <kurt.korbatits@nokia.com> | 2009-10-21 04:32:32 (GMT) |
commit | da433db6b88cc82b9897a95ce790a02bea14d900 (patch) | |
tree | 4ca554455bec2a9c3be88a4b3535ef3bd9c114f0 /src/gui/accessible/qaccessible2.h | |
parent | 0cb251e67ae45d8ab5ad715a4bc6dcf89209d2ab (diff) | |
parent | 7997279bc22d30bf1d1a30a567bda33ecc9aeb2d (diff) | |
download | Qt-da433db6b88cc82b9897a95ce790a02bea14d900.zip Qt-da433db6b88cc82b9897a95ce790a02bea14d900.tar.gz Qt-da433db6b88cc82b9897a95ce790a02bea14d900.tar.bz2 |
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Diffstat (limited to 'src/gui/accessible/qaccessible2.h')
-rw-r--r-- | src/gui/accessible/qaccessible2.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gui/accessible/qaccessible2.h b/src/gui/accessible/qaccessible2.h index 3281509..435c640 100644 --- a/src/gui/accessible/qaccessible2.h +++ b/src/gui/accessible/qaccessible2.h @@ -81,6 +81,7 @@ inline QAccessible2Interface *qAccessibleValueCastHelper() { return 0; } inline QAccessible2Interface *qAccessibleTextCastHelper() { return 0; } inline QAccessible2Interface *qAccessibleEditableTextCastHelper() { return 0; } inline QAccessible2Interface *qAccessibleTableCastHelper() { return 0; } +inline QAccessible2Interface *qAccessibleActionCastHelper() { return 0; } #define Q_ACCESSIBLE_OBJECT \ public: \ @@ -95,6 +96,8 @@ inline QAccessible2Interface *qAccessibleTableCastHelper() { return 0; } return qAccessibleValueCastHelper(); \ case QAccessible2::TableInterface: \ return qAccessibleTableCastHelper(); \ + case QAccessible2::ActionInterface: \ + return qAccessibleActionCastHelper(); \ } \ return 0; \ } \ @@ -208,6 +211,19 @@ public: int *columnSpan, bool *isSelected) = 0; }; +class Q_GUI_EXPORT QAccessibleActionInterface : public QAccessible2Interface +{ +public: + inline QAccessible2Interface *qAccessibleActionCastHelper() { return this; } + + virtual int actionCount() = 0; + virtual void doAction(int actionIndex) = 0; + virtual QString description(int actionIndex) = 0; + virtual QString name(int actionIndex) = 0; + virtual QString localizedName(int actionIndex) = 0; + virtual QStringList keyBindings(int actionIndex) = 0; +}; + #endif // QT_NO_ACCESSIBILITY QT_END_NAMESPACE |