Commit d787a15a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: adapt the UI for correct spatializer values

Ref #4887
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent be8542ad
......@@ -1365,23 +1365,7 @@ Spatializer::Spatializer( intf_thread_t *_p_intf, QWidget *_parent )
for( int i = 0 ; i < NUM_SP_CTRL ; i++ )
{
spatCtrl[i] = new QSlider( Qt::Vertical );
if( i < 2 )
{
spatCtrl[i]->setMaximum( 100 );
spatCtrl[i]->setValue( 20 );
}
else if( i < 4 )
{
spatCtrl[i]->setMaximum( 100 );
spatCtrl[i]->setValue( 20 );
spatCtrl[i]->setMinimum( -100 );
}
else
{
spatCtrl[i]->setMaximum( 40 );
spatCtrl[i]->setValue( 10 );
}
spatCtrl[i]->setValue( (int)var_InheritFloat( p_intf, spat_controls[i].psz_name ) * 10. );
oldControlVars[i] = spatCtrl[i]->value();
CONNECT( spatCtrl[i], valueChanged( int ), this, setInitValues() );
......@@ -1395,7 +1379,9 @@ Spatializer::Spatializer( intf_thread_t *_p_intf, QWidget *_parent )
layout->addWidget( spatCtrl[i], 1, i, Qt::AlignHCenter );
layout->addWidget( ctrl_readout[i], 2, i, Qt::AlignHCenter );
layout->addWidget( ctrl_texts[i], 3, i, Qt::AlignHCenter );
spatCtrl[i]->setRange( 0, 10 );
}
spatCtrl[0]->setRange( 0, 11 );
BUTTONACT( enableCheck, enable() );
......
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