diff options
author | José Millán Soto <fid@gpul.org> | 2012-01-14 23:48:04 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-18 12:11:15 (GMT) |
commit | 3e4fa9abefc5e6ede2c47d22e6aca3f38183d4a0 (patch) | |
tree | 8bd3ef5f32435d163c4cc8dfdd685ccd9da048e1 /src/gui/widgets | |
parent | d558a2c85f61ad2c634531b06cfc75581e2e2e2b (diff) | |
download | Qt-3e4fa9abefc5e6ede2c47d22e6aca3f38183d4a0.zip Qt-3e4fa9abefc5e6ede2c47d22e6aca3f38183d4a0.tar.gz Qt-3e4fa9abefc5e6ede2c47d22e6aca3f38183d4a0.tar.bz2 |
Handle closable tabs in QAccessibleTabBar
Tab information was hidden by the closing buttons.
Closing is implented by using doAction and actionText methods, as it's not possible to
use QAccessibleActionInterface to send actions to child widgets in complex widgets.
Change-Id: I0f55d5084737fa13c81df402f5dd54f11e164f8a
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/qtabbar.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/qtabbar.cpp b/src/gui/widgets/qtabbar.cpp index b294965..41cd131 100644 --- a/src/gui/widgets/qtabbar.cpp +++ b/src/gui/widgets/qtabbar.cpp @@ -1221,6 +1221,8 @@ void QTabBar::setCurrentIndex(int index) d->layoutTab(index); #ifndef QT_NO_ACCESSIBILITY if (QAccessible::isActive()) { + QAccessible::updateAccessibility(this, oldIndex + 1, QAccessible::Selection); + QAccessible::updateAccessibility(this, index + 1, QAccessible::Focus); QAccessible::updateAccessibility(this, index + 1, QAccessible::Selection); } |