Commit 8a0bd27b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

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

parent c78699e5
......@@ -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();
}
/**********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment