mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
00488cfa3c
commit
7c539fd12f
2 changed files with 15 additions and 0 deletions
|
@ -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);
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue