Commit 92e8555c authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

qt: Explicitely parent the VideoWidget to the central stack

This ensure the VideoWidget will have a valid initial size
Fix #17895
parent 0bcbffc8
......@@ -66,8 +66,8 @@
* This class handles resize issues
**********************************************************************/
VideoWidget::VideoWidget( intf_thread_t *_p_i )
: QFrame( NULL ) , p_intf( _p_i )
VideoWidget::VideoWidget( intf_thread_t *_p_i, QWidget* p_parent )
: QFrame( p_parent ) , p_intf( _p_i )
{
/* Set the policy to expand in both directions */
// setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
......
......@@ -56,7 +56,7 @@ class VideoWidget : public QFrame
{
Q_OBJECT
public:
VideoWidget( intf_thread_t * );
VideoWidget( intf_thread_t *, QWidget* p_parent );
virtual ~VideoWidget();
WId request( struct vout_window_t * );
......
......@@ -450,7 +450,7 @@ void MainInterface::createMainWidget( QSettings *creationSettings )
/* And video Outputs */
if( b_videoEmbedded )
{
videoWidget = new VideoWidget( p_intf );
videoWidget = new VideoWidget( p_intf, stackCentralW );
stackCentralW->addWidget( videoWidget );
}
mainLayout->insertWidget( 1, stackCentralW );
......
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