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

Fix setting accessible name of recipient key input field

GnuPG-bug-id: 5845
parent 62ec8eee
......@@ -135,7 +135,6 @@ public:
GpgME::Key mKey;
KeyGroup mGroup;
private:
struct Ui {
Ui(QWidget *parent)
: lineEdit{parent}
......@@ -146,6 +145,7 @@ private:
QToolButton button;
} ui;
private:
KeyListSortFilterProxyModel *const mFilterModel;
KeyListSortFilterProxyModel *const mCompleterFilterModel;
QCompleter *mCompleter = nullptr;
......@@ -490,4 +490,9 @@ void CertificateLineEdit::setKeyFilter(const std::shared_ptr<KeyFilter> &filter)
d->setKeyFilter(filter);
}
void CertificateLineEdit::setAccessibleNameOfLineEdit(const QString &name)
{
d->ui.lineEdit.setAccessibleName(name);
}
#include "certificatelineedit.moc"
......@@ -71,6 +71,8 @@ public:
/** Set the used keyfilter. */
void setKeyFilter(const std::shared_ptr<KeyFilter> &filter);
void setAccessibleNameOfLineEdit(const QString &name);
Q_SIGNALS:
/** Emitted when the selected key changed. */
void keyChanged();
......
......@@ -259,7 +259,7 @@ CertificateLineEdit *SignEncryptWidget::addRecipientWidget()
auto certSel = new CertificateLineEdit(mModel,
new EncryptCertificateFilter(mCurrentProto),
this);
certSel->setAccessibleName(i18nc("text for screen readers", "recipient key"));
certSel->setAccessibleNameOfLineEdit(i18nc("text for screen readers", "recipient key"));
certSel->setEnabled(mEncOtherChk->isChecked());
mRecpWidgets << certSel;
......
Markdown is supported
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