]> git.sesse.net Git - vlc/commitdiff
Set the correct ToolTip on the play/pause button.
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 11 Mar 2008 04:23:23 +0000 (21:23 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 11 Mar 2008 04:23:23 +0000 (21:23 -0700)
Should close #1485

modules/gui/qt4/components/interface_widgets.cpp

index 4b1988839a89406f88aca64ff7995f4b56addadd..c9540cbc95c25201f30fc459ba8cf6a48e042740 100644 (file)
@@ -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" ) );
+    }
 }
 
 /**