From: Peter Penz Date: Wed, 8 Jul 2009 22:31:45 +0000 (+0000) Subject: Fixed regression when refactoring the Information Panel: Don't forget to give a visua... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/7c539fd12f5decbfafbea5fa4c317e7c4d753691 Fixed regression when refactoring the Information Panel: Don't forget to give a visual indication if the generation of the preview takes long. svn path=/trunk/KDE/kdebase/apps/; revision=993584 --- diff --git a/src/panels/information/informationpanelcontent.cpp b/src/panels/information/informationpanelcontent.cpp index 5146e8c7e..d4c52a047 100644 --- a/src/panels/information/informationpanelcontent.cpp +++ b/src/panels/information/informationpanelcontent.cpp @@ -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); diff --git a/src/panels/information/informationpanelcontent.h b/src/panels/information/informationpanelcontent.h index 1277f31fa..11010572c 100644 --- a/src/panels/information/informationpanelcontent.h +++ b/src/panels/information/informationpanelcontent.h @@ -84,6 +84,12 @@ private slots: */ void showPreview(const KFileItem& item, const QPixmap& pixmap); + /** + * Marks the currently shown preview as outdated + * by greying the content. + */ + void markOutdatedPreview(); + void slotPlayingStarted(); void slotPlayingStopped();