Fixes #570 make 'search' and 'Main menu' buttons visible to screen reader

This commit is contained in:
Alexander Sashnov 2021-01-25 21:39:30 +07:00
parent f31d970315
commit 5d78a0ac42
3 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,7 @@
"local-kiwix-server":"Local Kiwix Server",
"random-article":"Random Article",
"home-page":"Home page",
"main-menu":"Main menu",
"print":"Print",
"new-tab":"New tab",
"close-tab":"Close tab",

View File

@ -65,6 +65,7 @@ SearchBar::SearchBar(QWidget *parent) :
mp_typingTimer = new QTimer(this);
mp_typingTimer->setSingleShot(true);
setPlaceholderText(gt("search"));
setToolTip(gt("search"));
m_completer.setCompletionMode(QCompleter::UnfilteredPopupCompletion);
m_completer.setCaseSensitivity(Qt::CaseInsensitive);
m_completer.setMaxVisibleItems(16);

View File

@ -42,6 +42,7 @@ TopWidget::TopWidget(QWidget *parent) :
QAction* menuAction = new QAction(this);
menuAction->setIcon(QIcon(":/icons/more.svg"));
menuAction->setMenu(menu);
menuAction->setToolTip(gt("main-menu"));
addAction(menuAction);
setContextMenuPolicy( Qt::PreventContextMenu );