mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-23 03:58: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",
|
"local-kiwix-server":"Local Kiwix Server",
|
||||||
"random-article":"Random Article",
|
"random-article":"Random Article",
|
||||||
"home-page":"Home page",
|
"home-page":"Home page",
|
||||||
|
"main-menu":"Main menu",
|
||||||
"print":"Print",
|
"print":"Print",
|
||||||
"new-tab":"New tab",
|
"new-tab":"New tab",
|
||||||
"close-tab":"Close tab",
|
"close-tab":"Close tab",
|
||||||
|
@ -65,6 +65,7 @@ SearchBar::SearchBar(QWidget *parent) :
|
|||||||
mp_typingTimer = new QTimer(this);
|
mp_typingTimer = new QTimer(this);
|
||||||
mp_typingTimer->setSingleShot(true);
|
mp_typingTimer->setSingleShot(true);
|
||||||
setPlaceholderText(gt("search"));
|
setPlaceholderText(gt("search"));
|
||||||
|
setToolTip(gt("search"));
|
||||||
m_completer.setCompletionMode(QCompleter::UnfilteredPopupCompletion);
|
m_completer.setCompletionMode(QCompleter::UnfilteredPopupCompletion);
|
||||||
m_completer.setCaseSensitivity(Qt::CaseInsensitive);
|
m_completer.setCaseSensitivity(Qt::CaseInsensitive);
|
||||||
m_completer.setMaxVisibleItems(16);
|
m_completer.setMaxVisibleItems(16);
|
||||||
|
@ -42,6 +42,7 @@ TopWidget::TopWidget(QWidget *parent) :
|
|||||||
QAction* menuAction = new QAction(this);
|
QAction* menuAction = new QAction(this);
|
||||||
menuAction->setIcon(QIcon(":/icons/more.svg"));
|
menuAction->setIcon(QIcon(":/icons/more.svg"));
|
||||||
menuAction->setMenu(menu);
|
menuAction->setMenu(menu);
|
||||||
|
menuAction->setToolTip(gt("main-menu"));
|
||||||
|
|
||||||
addAction(menuAction);
|
addAction(menuAction);
|
||||||
setContextMenuPolicy( Qt::PreventContextMenu );
|
setContextMenuPolicy( Qt::PreventContextMenu );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user