From 7c539fd12f5decbfafbea5fa4c317e7c4d753691 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 8 Jul 2009 22:31:45 +0000 Subject: 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 --- src/panels/information/informationpanelcontent.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/panels/information/informationpanelcontent.cpp') 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); -- cgit v1.3