From ce9296a2a0b10ee1c81be919d26e3bd9f4285ad0 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Tue, 13 Sep 2011 16:26:07 +0200 Subject: [PATCH] Set accessible name on QTabBar buttons. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id1993d75ec56952b26f158997414b43b857808cd Reviewed-on: http://codereview.qt-project.org/4791 Reviewed-by: Qt Sanity Bot Reviewed-by: Jan-Arve Sæther --- src/widgets/widgets/qtabbar.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/widgets/widgets/qtabbar.cpp b/src/widgets/widgets/qtabbar.cpp index 8faf156608..26109df6a3 100644 --- a/src/widgets/widgets/qtabbar.cpp +++ b/src/widgets/widgets/qtabbar.cpp @@ -363,7 +363,10 @@ void QTabBarPrivate::init() q->setFocusPolicy(Qt::NoFocus); } else #endif - q->setFocusPolicy(Qt::TabFocus); + q->setFocusPolicy(Qt::TabFocus); + + leftB->setAccessibleName(QTabBar::tr("Scroll Left")); + rightB->setAccessibleName(QTabBar::tr("Scroll Right")); q->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); elideMode = Qt::TextElideMode(q->style()->styleHint(QStyle::SH_TabBar_ElideMode, 0, q)); useScrollButtons = !q->style()->styleHint(QStyle::SH_TabBar_PreferNoArrows, 0, q);