Show icon overlays in the Informationen Panel.

BUG:190579
REVIEW:101573
This commit is contained in:
Matthias Fuchs 2011-06-10 21:49:38 +02:00
parent e0a318a95c
commit ca5d3fde11

View file

@ -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;
}
}