Commit acce7567 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
(cherry picked from commit 66b3569cecf9fb671e21bc672922295618971ef8)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a703f245
...@@ -210,7 +210,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf ) ...@@ -210,7 +210,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
CONNECT( this, askVideoToResize( unsigned int, unsigned int ), CONNECT( this, askVideoToResize( unsigned int, unsigned int ),
this, setVideoSize( unsigned int, unsigned int ) ); this, setVideoSize( unsigned int, unsigned int ) );
CONNECT( videoWidget, sizeChanged( int, int ), CONNECT( videoWidget, sizeChanged( int, int ),
this, resizeStack( int, int ) ); this, videoSizeChanged( int, int ) );
} }
CONNECT( this, askVideoSetFullScreen( bool ), CONNECT( this, askVideoSetFullScreen( bool ),
this, setVideoFullScreen( bool ) ); this, setVideoFullScreen( bool ) );
...@@ -680,6 +680,12 @@ void MainInterface::setVideoSize( unsigned int w, unsigned int h ) ...@@ -680,6 +680,12 @@ void MainInterface::setVideoSize( unsigned int w, unsigned int h )
videoWidget->SetSizing( w, 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 ) void MainInterface::setVideoFullScreen( bool fs )
{ {
b_videoFullScreen = fs; b_videoFullScreen = fs;
......
...@@ -238,6 +238,7 @@ private slots: ...@@ -238,6 +238,7 @@ private slots:
} }
void setVideoSize( unsigned int, unsigned int ); void setVideoSize( unsigned int, unsigned int );
void videoSizeChanged( int, int );
void setVideoFullScreen( bool ); void setVideoFullScreen( bool );
void setVideoOnTop( bool ); void setVideoOnTop( bool );
void setBoss(); 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