[vlc-commits] commit: Qt: videoWidget shouldn't be show/hide(), the parent stackWidget should toggle. (Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Sat Jun 12 02:30:15 CEST 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Jun 12 02:28:34 2010 +0200| [8a0bd27b9524be4ba2b8b67e030ae9d9ca096b03] | committer: Jean-Baptiste Kempf 

Qt: videoWidget shouldn't be show/hide(), the parent stackWidget should toggle.

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

 modules/gui/qt4/components/interface_widgets.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index 0913750..b8ed7c5 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -72,6 +72,7 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i )
     layout = new QHBoxLayout( this );
     layout->setContentsMargins( 0, 0, 0, 0 );
     stable = NULL;
+    show();
 }
 
 VideoWidget::~VideoWidget()
@@ -154,7 +155,6 @@ WId VideoWidget::request( int *pi_x, int *pi_y,
    Parent has to care about resizing itself */
 void VideoWidget::SetSizing( unsigned int w, unsigned int h )
 {
-    if( !isVisible() ) show();
     resize( w, h );
     emit sizeChanged( w, h );
     /* Work-around a bug?misconception? that would happen when vout core resize
@@ -177,7 +177,6 @@ void VideoWidget::release( void )
     stable = NULL;
 
     updateGeometry();
-    hide();
 }
 
 /**********************************************************************



More information about the vlc-commits mailing list