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
This commit is contained in:
Peter Penz 2009-07-08 22:31:45 +00:00
parent 00488cfa3c
commit 7c539fd12f
2 changed files with 15 additions and 0 deletions

View 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() void InformationPanelContent::slotPlayingStarted()
{ {
m_preview->setVisible(m_phononWidget->mode() != PhononWidget::Video); m_preview->setVisible(m_phononWidget->mode() != PhononWidget::Video);

View file

@ -84,6 +84,12 @@ private slots:
*/ */
void showPreview(const KFileItem& item, const QPixmap& pixmap); void showPreview(const KFileItem& item, const QPixmap& pixmap);
/**
* Marks the currently shown preview as outdated
* by greying the content.
*/
void markOutdatedPreview();
void slotPlayingStarted(); void slotPlayingStarted();
void slotPlayingStopped(); void slotPlayingStopped();