]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Avoid the unnecessary construction of a KIconEffect by using the one provided by...
authorJonathan Michael Thomas <echidnaman@kubuntu.org>
Sun, 29 Aug 2010 17:10:21 +0000 (17:10 +0000)
committerJonathan Michael Thomas <echidnaman@kubuntu.org>
Sun, 29 Aug 2010 17:10:21 +0000 (17:10 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=1169554

src/panels/information/informationpanelcontent.cpp

index a4d0bca84f695894ccfa58eb47b6bbe626193ddd..3b9a179605a125b94d1cf28083c4f2364b140d60 100644 (file)
@@ -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);
 }