]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/interface_widgets.cpp
Fix the activation or not of advanced buttons in fullscreen controller
[vlc] / modules / gui / qt4 / components / interface_widgets.cpp
index 49092171521e10b3be1349f1a3177f487601e35d..6ce1adbc6ab55e759b7c529e320a488cb39536b4 100644 (file)
@@ -56,7 +56,7 @@
 
 #include <math.h>
 
-#define I_PLAY_TOOLTIP "Play\nIf the playlist is empty, open a media"
+#define I_PLAY_TOOLTIP N_("Play\nIf the playlist is empty, open a media")
 
 /**********************************************************************
  * Video Widget. A simple frame on which video is drawn
@@ -368,7 +368,7 @@ void AdvControlsWidget::fromAtoB()
     if( !timeA )
     {
         timeA = var_GetTime( THEMIM->getInput(), "time"  );
-        ABButton->setToolTip( "Click to set point B" );
+        ABButton->setToolTip( qtr( "Click to set point B" ) );
         ABButton->setIcon( QIcon( ":/atob_noa" ) );
         return;
     }
@@ -377,7 +377,7 @@ void AdvControlsWidget::fromAtoB()
         timeB = var_GetTime( THEMIM->getInput(), "time"  );
         var_SetTime( THEMIM->getInput(), "time" , timeA );
         ABButton->setIcon( QIcon( ":/atob" ) );
-        ABButton->setToolTip( "Stop the A to B loop" );
+        ABButton->setToolTip( qtr( "Stop the A to B loop" ) );
         return;
     }
     timeA = 0;
@@ -889,7 +889,7 @@ void ControlsWidget::enableVideo( bool enable )
 
 void ControlsWidget::toggleAdvanced()
 {
-    if( !VISIBLE( advControls ) )
+    if( advControls && !b_advancedVisible )
     {
         advControls->show();
         b_advancedVisible = true;
@@ -961,6 +961,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i,
 #ifdef WIN32TRICK
     setWindowOpacity( 0.0 );
     fscHidden = true;
+    adjustSize();
     show();
 #endif
 
@@ -977,6 +978,7 @@ FullscreenControllerWidget::~FullscreenControllerWidget()
  */
 void FullscreenControllerWidget::showFSC()
 {
+    adjustSize();
 #ifdef WIN32TRICK
     // after quiting and going to fs, we need to call show()
     if( isHidden() )