diff options
| author | Peter Penz <[email protected]> | 2009-07-08 22:31:45 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-07-08 22:31:45 +0000 |
| commit | 7c539fd12f5decbfafbea5fa4c317e7c4d753691 (patch) | |
| tree | f74390dc9bb3df9057a5710ef722364cdb476c16 /src/panels/information/informationpanelcontent.cpp | |
| parent | 00488cfa3c588288b62076bf30c0bead3716f3ed (diff) | |
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
Diffstat (limited to 'src/panels/information/informationpanelcontent.cpp')
| -rw-r--r-- | src/panels/information/informationpanelcontent.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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); |
