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:
parent
b62adb5dda
commit
ce9296a2a0
@ -363,7 +363,10 @@ void QTabBarPrivate::init()
|
|||||||
q->setFocusPolicy(Qt::NoFocus);
|
q->setFocusPolicy(Qt::NoFocus);
|
||||||
} else
|
} else
|
||||||
#endif
|
#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);
|
q->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
||||||
elideMode = Qt::TextElideMode(q->style()->styleHint(QStyle::SH_TabBar_ElideMode, 0, q));
|
elideMode = Qt::TextElideMode(q->style()->styleHint(QStyle::SH_TabBar_ElideMode, 0, q));
|
||||||
useScrollButtons = !q->style()->styleHint(QStyle::SH_TabBar_PreferNoArrows, 0, q);
|
useScrollButtons = !q->style()->styleHint(QStyle::SH_TabBar_PreferNoArrows, 0, q);
|
||||||
|
Loading…
Reference in New Issue
Block a user