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

Add setter for a group of keys to CertificateLineEdit

GnuPG-bug-id: 5175, 5241
parent 75d5c5f8
......@@ -16,7 +16,7 @@ option(ENABLE_GROUP_SUPPORT "Enable experimental support for groups of keys [def
# Standalone build. Find / include everything necessary.
set(KF5_MIN_VERSION "5.78.0")
set(KMIME_VERSION "5.16.40")
set(LIBKLEO_VERSION "5.16.43")
set(LIBKLEO_VERSION "5.16.44")
set(QT_REQUIRED_VERSION "5.14.0")
set(GPGME_REQUIRED_VERSION "1.13.1")
......
......@@ -244,6 +244,15 @@ void CertificateLineEdit::setKey(const Key &k)
updateKey();
}
void CertificateLineEdit::setGroup(const KeyGroup &group)
{
QSignalBlocker blocky(this);
const QString summary = Formatting::summaryLine(group);
qCDebug(KLEOPATRA_LOG) << "Setting KeyGroup. " << summary;
setText(summary);
updateKey();
}
bool CertificateLineEdit::isEmpty() const
{
return text().isEmpty();
......
......@@ -63,6 +63,9 @@ public:
/** Set the preselected Key for this widget. */
void setKey(const GpgME::Key &key);
/** Set the preselected group for this widget. */
void setGroup(const KeyGroup &group);
/** Set the used keyfilter. */
void setKeyFilter(const std::shared_ptr<KeyFilter> &filter);
......
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