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 | |
| 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')
| -rw-r--r-- | src/panels/information/informationpanelcontent.cpp | 9 | ||||
| -rw-r--r-- | src/panels/information/informationpanelcontent.h | 6 |
2 files changed, 15 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); 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(); |
