[vlc-devel] commit: Set the correct ToolTip on the play/pause button. ( Jean-Baptiste Kempf )

git version control git at videolan.org
Tue Mar 11 05:24:12 CET 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Mar 10 21:23:23 2008 -0700| [c67c2cd7206fe4c2e7992555bc0577dcfaf4da7a]

Set the correct ToolTip on the play/pause button.
Should close #1485

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c67c2cd7206fe4c2e7992555bc0577dcfaf4da7a
---

 modules/gui/qt4/components/interface_widgets.cpp |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index 4b19888..c9540cb 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -723,10 +723,16 @@ void ControlsWidget::updateInput()
 
 void ControlsWidget::setStatus( int status )
 {
-    if( status == PLAYING_S ) // Playing
+    if( status == PLAYING_S ) /* Playing */
+    {
         playButton->setIcon( QIcon( ":/pixmaps/pause.png" ) );
+        playButton->setToolTip( qtr( "Pause" ) );
+    }
     else
+    {
         playButton->setIcon( QIcon( ":/pixmaps/play.png" ) );
+        playButton->setToolTip( qtr( "Play" ) );
+    }
 }
 
 /**




More information about the vlc-devel mailing list