[vlc-commits] commit: Qt: updateSystrayTooltipStatus simplification (Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Wed Apr 7 15:14:08 CEST 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Apr  7 15:14:13 2010 +0200| [776e49e2e301cb57fd726ce511b0a90633e88bd0] | committer: Jean-Baptiste Kempf 

Qt: updateSystrayTooltipStatus simplification

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

 modules/gui/qt4/main_interface.cpp |   26 +++++++++-----------------
 1 files changed, 9 insertions(+), 17 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 8dee4fe..713ceb0 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -961,23 +961,15 @@ void MainInterface::updateSystrayTooltipStatus( int i_status )
 {
     switch( i_status )
     {
-        case  0:
-        case  END_S:
-            {
-                sysTray->setToolTip( qtr( "VLC media player" ) );
-                break;
-            }
-        case PLAYING_S:
-            {
-                sysTray->setToolTip( input_name );
-                break;
-            }
-        case PAUSE_S:
-            {
-                sysTray->setToolTip( input_name + " - "
-                        + qtr( "Paused") );
-                break;
-            }
+    case PLAYING_S:
+        sysTray->setToolTip( input_name );
+        break;
+    case PAUSE_S:
+        sysTray->setToolTip( input_name + " - " + qtr( "Paused") );
+        break;
+    default:
+        sysTray->setToolTip( qtr( "VLC media player" ) );
+        break;
     }
     QVLCMenu::updateSystrayMenu( this, p_intf );
 }



More information about the vlc-commits mailing list