Commit c20ab5b9 authored by Volker Krause's avatar Volker Krause
Browse files

Port away from depreacted IconSize() method

Subscribers: kde-utils-devel

Maniphest Tasks: T11637

Differential Revision:
parent 607fd728
......@@ -51,12 +51,13 @@ KWalletFolderItem::KWalletFolderItem(KWallet::Wallet *w, QTreeWidget *parent, co
QPixmap KWalletFolderItem::getFolderIcon(KIconLoader::Group group)
QPixmap pix = QIcon::fromTheme(_name).pixmap(IconSize(group), IconSize(group));
const auto iconSize = KIconLoader::global()->currentSize(group);
QPixmap pix = QIcon::fromTheme(_name).pixmap(iconSize);
if (pix.isNull()) {
pix = QIcon::fromTheme(_name.toLower()).pixmap(IconSize(group), IconSize(group));
pix = QIcon::fromTheme(_name.toLower()).pixmap(iconSize);
if (pix.isNull())
pix = QIcon::fromTheme(QStringLiteral("folder-red")).pixmap(IconSize(group), IconSize(group));
pix = QIcon::fromTheme(QStringLiteral("folder-red")).pixmap(iconSize);
return pix;
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