Commit 6b5271fa authored by Matthias Fuchs's avatar Matthias Fuchs
Browse files

Show icon overlays in the Informationen Panel.

BUG:190579
REVIEW:101573
parent 66cbe2f9
......@@ -306,7 +306,8 @@ void InformationPanelContent::showIcon(const KFileItem& item)
m_outdatedPreviewTimer->stop();
m_pendingPreview = false;
if (!applyPlace(item.targetUrl())) {
m_preview->setPixmap(item.pixmap(KIconLoader::SizeEnormous));
KIcon icon(item.iconName(), KIconLoader::global(), item.overlays());
m_preview->setPixmap(icon.pixmap(KIconLoader::SizeEnormous));
}
}
......@@ -314,10 +315,11 @@ void InformationPanelContent::showPreview(const KFileItem& item,
const QPixmap& pixmap)
{
m_outdatedPreviewTimer->stop();
Q_UNUSED(item);
if (m_pendingPreview) {
m_preview->setPixmap(pixmap);
QPixmap p = pixmap;
KIconLoader::global()->drawOverlays(item.overlays(), p, KIconLoader::Desktop);
m_preview->setPixmap(p);
m_pendingPreview = false;
}
}
......
Supports Markdown
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