┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Michael Thomas <[email protected]>2010-08-29 17:10:21 +0000
committerJonathan Michael Thomas <[email protected]>2010-08-29 17:10:21 +0000
commit28093154dc74912060d5fb7c4de5314c95bb5500 (patch)
treef33b38132b5c4b2287aa0f1ff004e38d881a0301
parentb905532effdec177568308258c2ad87c00c70cac (diff)
Avoid the unnecessary construction of a KIconEffect by using the one provided by the global KIconLoader for dolphin
svn path=/trunk/KDE/kdebase/apps/; revision=1169554
-rw-r--r--src/panels/information/informationpanelcontent.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/panels/information/informationpanelcontent.cpp b/src/panels/information/informationpanelcontent.cpp
index a4d0bca84..3b9a17960 100644
--- a/src/panels/information/informationpanelcontent.cpp
+++ b/src/panels/information/informationpanelcontent.cpp
@@ -324,10 +324,10 @@ void InformationPanelContent::showPreview(const KFileItem& item,
void InformationPanelContent::markOutdatedPreview()
{
- KIconEffect iconEffect;
- QPixmap disabledPixmap = iconEffect.apply(m_preview->pixmap(),
- KIconLoader::Desktop,
- KIconLoader::DisabledState);
+ KIconEffect *iconEffect = KIconLoader::global()->iconEffect();
+ QPixmap disabledPixmap = iconEffect->apply(m_preview->pixmap(),
+ KIconLoader::Desktop,
+ KIconLoader::DisabledState);
m_preview->setPixmap(disabledPixmap);
}