Commit 1630833f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fix small quirk when adapting the equalizer values

parent 0efead41
...@@ -911,9 +911,10 @@ Equalizer::Equalizer( intf_thread_t *_p_intf, QWidget *_parent ) : ...@@ -911,9 +911,10 @@ Equalizer::Equalizer( intf_thread_t *_p_intf, QWidget *_parent ) :
bands[i] = new QSlider( Qt::Vertical ); bands[i] = new QSlider( Qt::Vertical );
bands[i]->setMaximum( 400 ); bands[i]->setMaximum( 400 );
bands[i]->setValue( 200 ); bands[i]->setValue( 200 );
bands[i]->setMinimumWidth(34);
CONNECT( bands[i], valueChanged( int ), this, setCoreBands() ); CONNECT( bands[i], valueChanged( int ), this, setCoreBands() );
band_texts[i] = new QLabel( band_frequencies[i] + "\n0.0dB" ); band_texts[i] = new QLabel( band_frequencies[i] + "\n00.0dB" );
band_texts[i]->setFont( smallFont ); band_texts[i]->setFont( smallFont );
grid->addWidget( bands[i], 0, i ); grid->addWidget( bands[i], 0, i );
......
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeType"> <property name="sizeType">
<enum>QSizePolicy::Fixed</enum> <enum>QSizePolicy::Preferred</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
......
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