Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
libkleo
Commits
06e61fad
Commit
06e61fad
authored
Jul 19, 2022
by
Ingo Klöcker
Browse files
Add accessible names for a few icon-only buttons
GnuPG-bug-id: 6088
parent
2b699430
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/newkeyapprovaldialog.cpp
View file @
06e61fad
...
...
@@ -137,6 +137,7 @@ public:
infoBtn
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"help-contextual"
)));
infoBtn
->
setIconSize
(
QSize
(
22
,
22
));
infoBtn
->
setFlat
(
true
);
infoBtn
->
setAccessibleName
(
i18nc
(
"@action:button"
,
"Show Details"
));
hLay
->
addWidget
(
infoBtn
);
hLay
->
addWidget
(
combo
,
1
);
hLay
->
addWidget
(
mFilterBtn
,
0
);
...
...
@@ -178,9 +179,11 @@ public:
{
if
(
mCombo
->
idFilter
().
isEmpty
())
{
mFilterBtn
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"kt-add-filters"
)));
mFilterBtn
->
setAccessibleName
(
i18nc
(
"@action:button"
,
"Show Matching Keys"
));
mFilterBtn
->
setToolTip
(
i18n
(
"Show keys matching the email address"
));
}
else
{
mFilterBtn
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"kt-remove-filters"
)));
mFilterBtn
->
setAccessibleName
(
i18nc
(
"@action:button short for 'Show all keys'"
,
"Show All"
));
mFilterBtn
->
setToolTip
(
i18n
(
"Show all keys"
));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment