Set accessible name on QTabBar buttons.

Change-Id: Id1993d75ec56952b26f158997414b43b857808cd
Reviewed-on: http://codereview.qt-project.org/4791
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
This commit is contained in:
Frederik Gladhorn 2011-09-13 16:26:07 +02:00 committed by Qt by Nokia
parent b62adb5dda
commit ce9296a2a0

View File

@ -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);