]> git.sesse.net Git - vlc/commitdiff
Qt4 - Hide the grey rectangle on the top of the interface, try to fix the zoom reiszing
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 16 Dec 2007 20:10:34 +0000 (20:10 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 16 Dec 2007 20:10:34 +0000 (20:10 +0000)
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/main_interface.cpp

index d7f3678c134ed99b9bc1de8976fad22dab99b40b..440731de873fee93eaceec0fa9b5471ec44ee793 100644 (file)
@@ -107,6 +107,7 @@ void *VideoWidget::request( vout_thread_t *p_nvout, int *pi_x, int *pi_y,
 /* Set the Widget to the correct Size */
 void VideoWidget::SetSizing( unsigned int w, unsigned int h )
 {
+    widgetSize = QSize( w, h );
     resize( w, h );
     //updateGeometry(); // Needed for deinterlace
     msg_Dbg( p_intf, "%i %i", sizeHint().height(), sizeHint().width() );
index 280b96b2429ac5bb05b46c694dae08662e99de26..b3945e9551cbc154bddcf0ea30342ddc131c520f 100644 (file)
@@ -135,6 +135,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     dockPL->setAllowedAreas( Qt::LeftDockWidgetArea
                            | Qt::RightDockWidgetArea
                            | Qt::BottomDockWidgetArea );
+    dockPL->hide();
 
     /************
      * Menu Bar
@@ -622,10 +623,9 @@ void *MainInterface::requestVideo( vout_thread_t *p_nvout, int *pi_x,
           /*  videoWidget->widgetSize = QSize( *pi_width, *pi_height );
         }*/
 
-        videoWidget->widgetSize = QSize( *pi_width, *pi_height );
-        emit askVideoToResize( *pi_width, *pi_height );
-
         videoIsActive = true;
+
+        emit askVideoToResize( *pi_width, *pi_height );
         emit askUpdate();
     }
     return ret;
@@ -666,8 +666,8 @@ int MainInterface::controlVideo( void *p_window, int i_query, va_list args )
         {
             unsigned int i_width  = va_arg( args, unsigned int );
             unsigned int i_height = va_arg( args, unsigned int );
-            videoWidget->widgetSize = QSize( i_width, i_height );
-            videoWidget->updateGeometry();
+            emit askVideoToResize( i_width, i_height );
+            emit askUpdate();
             updateGeometry();
             i_ret = VLC_SUCCESS;
             break;