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
e92e3128
Commit
e92e3128
authored
Mar 10, 2022
by
Ingo Klöcker
Browse files
Fix setting accessible name of recipient key input field
GnuPG-bug-id: 5845
parent
62ec8eee
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/crypto/gui/certificatelineedit.cpp
View file @
e92e3128
...
...
@@ -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"
src/crypto/gui/certificatelineedit.h
View file @
e92e3128
...
...
@@ -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
();
...
...
src/crypto/gui/signencryptwidget.cpp
View file @
e92e3128
...
...
@@ -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
->
setAccessibleName
OfLineEdit
(
i18nc
(
"text for screen readers"
,
"recipient key"
));
certSel
->
setEnabled
(
mEncOtherChk
->
isChecked
());
mRecpWidgets
<<
certSel
;
...
...
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