┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels
diff options
context:
space:
mode:
authorMatthias Fuchs <[email protected]>2011-06-10 21:49:38 +0200
committerMatthias Fuchs <[email protected]>2011-06-21 14:57:18 +0200
commitca5d3fde114dfdb280e46995e8a425d3ec558596 (patch)
tree9882187f6bb3fe184746954bf0128838c1cc4e30 /src/panels
parente0a318a95cfcce2dfad65e2e38a9fc3657cc1531 (diff)
Show icon overlays in the Informationen Panel.
BUG:190579 REVIEW:101573
Diffstat (limited to 'src/panels')
-rw-r--r--src/panels/information/informationpanelcontent.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/panels/information/informationpanelcontent.cpp b/src/panels/information/informationpanelcontent.cpp
index 77a623238..2d90007bf 100644
--- a/src/panels/information/informationpanelcontent.cpp
+++ b/src/panels/information/informationpanelcontent.cpp
@@ -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;
}
}