Commit 19d0a948 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>
(cherry picked from commit d787a15aeef5a79e18fdfd8e16118b7c2df37fbf)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 3f92db24
......@@ -1366,23 +1366,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() );
......@@ -1396,7 +1380,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