Commit f740c929 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Avoid needlessly converting a QIcon to a pixmap

We can pass a QIcon directly here, which is better since it makes the widget responsible for picking the correct icon size
parent 488a31ae
Pipeline #59896 passed with stage
in 14 minutes and 2 seconds
......@@ -26,7 +26,6 @@
#include <Libkleo/Formatting>
#include <KLocalizedString>
#include <KIconLoader>
#include <gpgme++/key.h>
......@@ -229,7 +228,7 @@ void CertificateLineEdit::updateKey()
}
if (newKey.isNull() && newGroup.isNull()) {
if (mEditFinished) {
mLineAction->setIcon(QIcon::fromTheme(QStringLiteral("question")).pixmap(KIconLoader::SizeSmallMedium));
mLineAction->setIcon(QIcon::fromTheme(QStringLiteral("question")));
mLineAction->setToolTip(i18n("Multiple certificates"));
} else {
mLineAction->setIcon(QIcon::fromTheme(QStringLiteral("resource-group-new")));
......
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