Commit 569095f0 authored by Dylan Yudaken's avatar Dylan Yudaken Committed by Jean-Baptiste Kempf

fix qt crop synchronisation

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f75c6c16
......@@ -212,6 +212,8 @@ ExtVideo::ExtVideo( intf_thread_t *_p_intf, QTabWidget *_parent ) :
CONNECT( ui.cropBotPx, valueChanged( int ), this, cropChange() );
CONNECT( ui.cropLeftPx, valueChanged( int ), this, cropChange() );
CONNECT( ui.cropRightPx, valueChanged( int ), this, cropChange() );
CONNECT( ui.leftRightCropSync, toggled ( bool ), this, cropChange() );
CONNECT( ui.topBotCropSync, toggled ( bool ), this, cropChange() );
CONNECT( ui.topBotCropSync, toggled( bool ),
ui.cropBotPx, setDisabled( bool ) );
CONNECT( ui.leftRightCropSync, toggled( bool ),
......@@ -224,6 +226,11 @@ ExtVideo::~ExtVideo()
void ExtVideo::cropChange()
{
if( ui.topBotCropSync->isChecked() )
ui.cropBotPx->setValue( ui.cropTopPx->value() );
if( ui.leftRightCropSync->isChecked() )
ui.cropRightPx->setValue( ui.cropLeftPx->value() );
p_vout = THEMIM->getVout();
if( p_vout )
{
......
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