mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Hide the video player when the video has finished.
BUG: 339882 FIXED-IN: 4.14.3 REVIEW: 120776
This commit is contained in:
parent
3f28c70423
commit
b3e113c05a
|
@ -165,6 +165,12 @@ void PhononWidget::stateChanged(Phonon::State newstate)
|
||||||
m_stopButton->show();
|
m_stopButton->show();
|
||||||
m_playButton->hide();
|
m_playButton->hide();
|
||||||
break;
|
break;
|
||||||
|
case Phonon::StoppedState:
|
||||||
|
if (m_videoPlayer) {
|
||||||
|
m_videoPlayer->hide();
|
||||||
|
}
|
||||||
|
emit hasVideoChanged(false);
|
||||||
|
// fall through
|
||||||
default:
|
default:
|
||||||
m_stopButton->hide();
|
m_stopButton->hide();
|
||||||
m_playButton->show();
|
m_playButton->show();
|
||||||
|
@ -207,16 +213,7 @@ void PhononWidget::stop()
|
||||||
{
|
{
|
||||||
if (m_media) {
|
if (m_media) {
|
||||||
m_media->stop();
|
m_media->stop();
|
||||||
|
|
||||||
m_stopButton->hide();
|
|
||||||
m_playButton->show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_videoPlayer) {
|
|
||||||
m_videoPlayer->hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
emit hasVideoChanged(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PhononWidget::slotHasVideoChanged(bool hasVideo)
|
void PhononWidget::slotHasVideoChanged(bool hasVideo)
|
||||||
|
|
Loading…
Reference in a new issue