Commit 67adc49f authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Set accessible name for input fields and their labels

orca prefers the widget's label over the widget's accessible name for
text input fields. Other screen readers may prefer the widget's
accessible name. Therefore, set the accessible name of the text input
fields and of the corresponding labels.

GnuPG-bug-id: 6095
parent 5a6298e8
......@@ -138,6 +138,7 @@ public:
ui.groupsFilter = new QLineEdit(q);
ui.groupsFilter->setClearButtonEnabled(true);
ui.groupsFilter->setAccessibleName(i18nc("@label", "Search groups"));
ui.groupsFilter->setToolTip(i18nc("@info:tooltip", "Search the list for groups matching the search term."));
ui.groupsFilter->setPlaceholderText(i18nc("@info::placeholder", "Enter search term"));
label->setBuddy(ui.groupsFilter);
......
......@@ -97,6 +97,7 @@ public:
{
auto hbox = new QHBoxLayout;
auto label = new QLabel{i18nc("@label", "Search:")};
label->setAccessibleName(i18nc("@label", "Search available keys"));
label->setToolTip(i18nc("@info:tooltip", "Search the list of available keys for keys matching the search term."));
hbox->addWidget(label);
......@@ -153,6 +154,7 @@ public:
{
auto hbox = new QHBoxLayout;
auto label = new QLabel{i18nc("@label", "Search:")};
label->setAccessibleName(i18nc("@label", "Search group keys"));
label->setToolTip(i18nc("@info:tooltip", "Search the list of group keys for keys matching the search term."));
hbox->addWidget(label);
......
Supports Markdown
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