Commit 509c6d0d authored by Ingo Klöcker's avatar 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
......@@ -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);
......
......@@ -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;
......
......@@ -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);
......
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