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

Provide tooltips and show validity icon for entered group of keys

GnuPG-bug-id: 5175, 5241
parent 9f3c426d
Pipeline #48856 passed with stage
in 17 minutes and 48 seconds
......@@ -15,7 +15,7 @@ option(DISABLE_KWATCHGNUPG "Don't build the kwatchgnupg tool [default=OFF]" OFF)
# Standalone build. Find / include everything necessary.
set(KF5_MIN_VERSION "5.78.0")
set(KMIME_VERSION "5.16.40")
set(LIBKLEO_VERSION "5.16.44")
set(LIBKLEO_VERSION "5.16.46")
set(QT_REQUIRED_VERSION "5.14.0")
set(GPGME_REQUIRED_VERSION "1.13.1")
......
......@@ -189,8 +189,8 @@ void CertificateLineEdit::updateKey()
mLineAction->setToolTip(Formatting::validity(newKey.userID(0)) +
QStringLiteral("<br/>Click here for details."));
} else if (!newGroup.isNull()) {
mLineAction->setIcon(QIcon::fromTheme(QStringLiteral("group")));
mLineAction->setToolTip(QString());
mLineAction->setIcon(Formatting::validityIcon(newGroup));
mLineAction->setToolTip(Formatting::validity(newGroup));
} else {
mLineAction->setIcon(QIcon::fromTheme(QStringLiteral("emblem-error")));
mLineAction->setToolTip(i18n("No matching certificates found.<br/>Click here to import a certificate."));
......@@ -206,7 +206,7 @@ void CertificateLineEdit::updateKey()
if (!mKey.isNull()) {
setToolTip(Formatting::toolTip(mKey, Formatting::ToolTipOption::AllOptions));
} else if (!mGroup.isNull()) {
setToolTip(QString());
setToolTip(Formatting::toolTip(mGroup, Formatting::ToolTipOption::AllOptions));
} else {
setToolTip(QString());
}
......
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