]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/information/informationpanelcontent.cpp
Fixed regression when refactoring the Information Panel: Don't forget to give a visua...
[dolphin.git] / src / panels / information / informationpanelcontent.cpp
index 5146e8c7ea0a4663066a6534ca540a5e0d39b719..d4c52a04794ed52acb28e294c72139e7aba5329d 100644 (file)
@@ -492,6 +492,15 @@ void InformationPanelContent::showPreview(const KFileItem& item,
     }
 }
 
+void InformationPanelContent::markOutdatedPreview()
+{
+    KIconEffect iconEffect;
+    QPixmap disabledPixmap = iconEffect.apply(m_preview->pixmap(),
+                                              KIconLoader::Desktop,
+                                              KIconLoader::DisabledState);
+    m_preview->setPixmap(disabledPixmap);
+}
+
 void InformationPanelContent::slotPlayingStarted()
 {
     m_preview->setVisible(m_phononWidget->mode() != PhononWidget::Video);