[vlc-devel] [PATCH] Resolved PLAY button icon change issue
Abhimanyu Singh Gaur
gaur.1 at iitj.ac.in
Sun Mar 13 09:52:30 CET 2016
Earlier the PLAY button icon in project preview didn't used to change back to play from pause, if we paused the media, because the media was not actually getting paused. So no signal for pause was emitted. Now it works fine with this patch.
---
src/Gui/preview/PreviewWidget.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/Gui/preview/PreviewWidget.cpp b/src/Gui/preview/PreviewWidget.cpp
index f5bc00b..d0975dd 100644
--- a/src/Gui/preview/PreviewWidget.cpp
+++ b/src/Gui/preview/PreviewWidget.cpp
@@ -129,6 +129,13 @@ PreviewWidget::on_pushButtonPlay_clicked()
if ( m_previewStopped == true )
m_previewStopped = false;
m_renderer->togglePlayPause();
+ if ( m_renderer->isRendering() )
+ {
+ if( m_renderer->isPaused() )
+ m_ui->pushButtonPlay->setIcon( QIcon( ":/images/play" ) );
+ else
+ m_ui->pushButtonPlay->setIcon( QIcon( ":/images/pause" ) );
+ }
}
void
--
2.1.0
More information about the vlc-devel
mailing list