]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/information/informationpanelcontent.cpp
Avoid the unnecessary construction of a KIconEffect by using the one provided by...
[dolphin.git] / 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);
 }