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 4b19888..c9540cb 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" ) );
+    }
 }
 
 /**