Commit 66b3569c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fix an annoying resizing issue.

That was resizing when video was stacked in the playlist
parent 86e63657
......@@ -210,7 +210,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
CONNECT( this, askVideoToResize( unsigned int, unsigned int ),
this, setVideoSize( unsigned int, unsigned int ) );
CONNECT( videoWidget, sizeChanged( int, int ),
this, resizeStack( int, int ) );
this, videoSizeChanged( int, int ) );
}
CONNECT( this, askVideoSetFullScreen( bool ),
this, setVideoFullScreen( bool ) );
......@@ -683,6 +683,12 @@ void MainInterface::setVideoSize( unsigned int w, unsigned int h )
videoWidget->SetSizing( w, h );
}
void MainInterface::videoSizeChanged( int w, int h )
{
if( !playlistWidget || playlistWidget->artContainer->currentWidget() != videoWidget )
resizeStack( w, h );
}
void MainInterface::setVideoFullScreen( bool fs )
{
b_videoFullScreen = fs;
......
......@@ -238,6 +238,7 @@ private slots:
}
void setVideoSize( unsigned int, unsigned int );
void videoSizeChanged( int, int );
void setVideoFullScreen( bool );
void setVideoOnTop( bool );
void setBoss();
......
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