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

Use QStyle instead of KIconLoader for icon size

parent 021bc7d1
...@@ -619,7 +619,7 @@ void KWalletEditor::entrySelectionChanged(QTreeWidgetItem *item) ...@@ -619,7 +619,7 @@ void KWalletEditor::entrySelectionChanged(QTreeWidgetItem *item)
if (fi) { if (fi) {
_currentFolder = fi->name(); _currentFolder = fi->name();
_entryTitle->setText(QStringLiteral("<font size=\"+1\">%1</font>").arg(fi->text(0))); _entryTitle->setText(QStringLiteral("<font size=\"+1\">%1</font>").arg(fi->text(0)));
_iconTitle->setPixmap(fi->getFolderIcon().pixmap(KIconLoader::global()->currentSize(KIconLoader::Toolbar))); _iconTitle->setPixmap(fi->getFolderIcon().pixmap(style()->pixelMetric(QStyle::PixelMetric::PM_ToolBarIconSize)));
} }
_displayedItem = item; _displayedItem = item;
......
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