mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 11:37:56 -04:00
Fixes #570 make 'search' and 'Main menu' buttons visible to screen reader
This commit is contained in:
parent
f31d970315
commit
5d78a0ac42
@ -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",
|
||||
|
@ -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);
|
||||
|
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user