vlc | branch: master | Jean-Baptiste Kempf <j...@videolan.org> | Fri Apr 18 13:37:50 2014 +0200| [421a52294dbc6998df72b2b379630df57899291d] | committer: Jean-Baptiste Kempf
Qt: fix play button state after toolbar customization Close #10850 > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=421a52294dbc6998df72b2b379630df57899291d --- modules/gui/qt4/components/controller.cpp | 1 + modules/gui/qt4/components/controller_widget.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt4/components/controller.cpp b/modules/gui/qt4/components/controller.cpp index d2ed608..a006ff0 100644 --- a/modules/gui/qt4/components/controller.cpp +++ b/modules/gui/qt4/components/controller.cpp @@ -241,6 +241,7 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options ) CONNECT_MAP_SET( playButton, PLAY_ACTION ); CONNECT( this, inputPlaying( bool ), playButton, updateButtonIcons( bool )); + playButton->updateButtonIcons( THEMIM->getIM()->playingStatus() == PLAYING_S ); widget = playButton; } break; diff --git a/modules/gui/qt4/components/controller_widget.hpp b/modules/gui/qt4/components/controller_widget.hpp index 3633eaa..8320175 100644 --- a/modules/gui/qt4/components/controller_widget.hpp +++ b/modules/gui/qt4/components/controller_widget.hpp @@ -52,7 +52,7 @@ class QAbstractSlider; class PlayButton : public QToolButton { Q_OBJECT -private slots: +public slots: void updateButtonIcons( bool ); }; _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits