From 8a0bd27b9524be4ba2b8b67e030ae9d9ca096b03 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Sat, 12 Jun 2010 02:28:34 +0200 Subject: [PATCH] Qt: videoWidget shouldn't be show/hide(), the parent stackWidget should toggle. --- modules/gui/qt4/components/interface_widgets.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp index 0913750f06..b8ed7c54d4 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(); } /********************************************************************** -- 2.11.4.GIT