This commit is contained in:
parent
be2e39ad6d
commit
7872497479
|
@ -597,8 +597,7 @@ void Form_DeviceConfig::on_sliderClicked(int value)
|
|||
else
|
||||
{
|
||||
QDoubleSpinBox* doubleSpinBox = reinterpret_cast<QDoubleSpinBox*>(abstractSpinBox);
|
||||
double temp = value * doubleSpinBox->singleStep();
|
||||
doubleSpinBox->setValue(temp);
|
||||
doubleSpinBox->setValue(value / 100.0);
|
||||
}
|
||||
|
||||
break;
|
||||
|
@ -634,8 +633,7 @@ void Form_DeviceConfig::on_doubleSpinboxClicked(double value)
|
|||
QString sliderProverty = slider->property("config_name").toString();
|
||||
if (sliderProverty == spinBoxProverty)
|
||||
{
|
||||
int temp = round(value / spinBox->singleStep());
|
||||
slider->setValue(temp);
|
||||
slider->setValue(round(value * 100));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue