Commit 229a415f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt: remove V4L2 spin box control

The only V4L2 controls "without" minima and maxima are the 64-bits
integers. Those are not handled properly by the Qt UI anyway, since
neither the QSpinBox nor the Q(Abstract)Slider support the proper
range of values.
parent 74d595c6
......@@ -804,7 +804,6 @@ void ExtV4l2::Refresh( void )
hlayout->addWidget( combobox );
}
else
if( (i_type & VLC_VAR_HASMIN) && (i_type & VLC_VAR_HASMAX) )
{
QSlider *slider = new QSlider( box );
slider->setObjectName( qfu( psz_var ) );
......@@ -828,17 +827,6 @@ void ExtV4l2::Refresh( void )
ValueChange( int ) );
hlayout->addWidget( slider );
}
else
{
QSpinBox *spinBox = new QSpinBox( box );
spinBox->setObjectName( qfu( psz_var ) );
spinBox->setMinimum( INT_MIN );
spinBox->setMaximum( INT_MAX );
spinBox->setValue( i_val );
CONNECT( spinBox, valueChanged( int ), this,
ValueChange( int ) );
hlayout->addWidget( spinBox );
}
layout->addLayout( hlayout );
break;
}
......
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