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
Kleopatra
Commits
509c6d0d
Commit
509c6d0d
authored
Jul 20, 2022
by
Ingo Klöcker
Browse files
Set accessible names for a few icon-only buttons
GnuPG-bug-id: 6088
parent
4a3dcec0
Pipeline
#207023
passed with stage
in 2 minutes and 14 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/dialogs/editgroupdialog.cpp
View file @
509c6d0d
...
...
@@ -110,12 +110,14 @@ public:
auto
addButton
=
new
QPushButton
();
addButton
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"arrow-down"
)));
addButton
->
setAccessibleName
(
i18nc
(
"@action:button"
,
"Add Selected Keys"
));
addButton
->
setToolTip
(
i18n
(
"Add the selected keys to the group"
));
addButton
->
setEnabled
(
false
);
buttonsLayout
->
addWidget
(
addButton
);
auto
removeButton
=
new
QPushButton
();
removeButton
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"arrow-up"
)));
addButton
->
setAccessibleName
(
i18nc
(
"@action:button"
,
"Remove Selected Keys"
));
removeButton
->
setToolTip
(
i18n
(
"Remove the selected keys from the group"
));
removeButton
->
setEnabled
(
false
);
buttonsLayout
->
addWidget
(
removeButton
);
...
...
src/newcertificatewizard/listwidget.cpp
View file @
509c6d0d
...
...
@@ -174,9 +174,13 @@ private:
setupUi
(
q
);
addTB
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"list-add"
)));
addTB
->
setAccessibleName
(
i18nc
(
"@action:button"
,
"Add Entry"
));
removeTB
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"list-remove"
)));
removeTB
->
setAccessibleName
(
i18nc
(
"@action:button"
,
"Remove Entry"
));
upTB
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"go-up"
)));
upTB
->
setAccessibleName
(
i18nc
(
"@action:button"
,
"Move Up"
));
downTB
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"go-down"
)));
downTB
->
setAccessibleName
(
i18nc
(
"@action:button"
,
"Move Down"
));
}
}
ui
;
...
...
src/view/pgpcardwidget.cpp
View file @
509c6d0d
...
...
@@ -147,6 +147,7 @@ PGPCardWidget::PGPCardWidget(QWidget *parent):
{
auto
button
=
new
QPushButton
;
button
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"cell_edit"
)));
button
->
setAccessibleName
(
i18nc
(
"@action:button"
,
"Edit"
));
button
->
setToolTip
(
i18n
(
"Change"
));
cardInfoGrid
->
addWidget
(
button
,
row
,
2
);
connect
(
button
,
&
QPushButton
::
clicked
,
this
,
&
PGPCardWidget
::
changeNameRequested
);
...
...
@@ -162,6 +163,7 @@ PGPCardWidget::PGPCardWidget(QWidget *parent):
{
auto
button
=
new
QPushButton
;
button
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"cell_edit"
)));
button
->
setAccessibleName
(
i18nc
(
"@action:button"
,
"Edit"
));
button
->
setToolTip
(
i18n
(
"Change"
));
cardInfoGrid
->
addWidget
(
button
,
row
,
2
);
connect
(
button
,
&
QPushButton
::
clicked
,
this
,
&
PGPCardWidget
::
changeUrlRequested
);
...
...
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