Kaydet (Commit) 0fc79344 authored tarafından Niklas Johansson's avatar Niklas Johansson Kaydeden (comit) Caolán McNamara

tdf#90994 Sidebar tab bar buttons should should have accessible names

The tab bar buttons (Properties, Styles and formatting, Gallery ...)
should expose their name to accessibility tools.

Change-Id: I5292ca848688cf93a046c3f5d8906ac35cee1cfe
Reviewed-on: https://gerrit.libreoffice.org/15639Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 65088fc4
...@@ -262,6 +262,8 @@ bool TabBar::Notify (NotifyEvent&) ...@@ -262,6 +262,8 @@ bool TabBar::Notify (NotifyEvent&)
VclPtr<RadioButton> TabBar::CreateTabItem (const DeckDescriptor& rDeckDescriptor) VclPtr<RadioButton> TabBar::CreateTabItem (const DeckDescriptor& rDeckDescriptor)
{ {
VclPtr<RadioButton> pItem = ControlFactory::CreateTabItem(this); VclPtr<RadioButton> pItem = ControlFactory::CreateTabItem(this);
pItem->SetAccessibleName(rDeckDescriptor.msTitle);
pItem->SetAccessibleDescription(rDeckDescriptor.msHelpText);
pItem->SetHelpText(rDeckDescriptor.msHelpText); pItem->SetHelpText(rDeckDescriptor.msHelpText);
pItem->SetQuickHelpText(rDeckDescriptor.msHelpText); pItem->SetQuickHelpText(rDeckDescriptor.msHelpText);
return pItem; return pItem;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment