mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3365 AppFwk Integer slider editor : Block signals in configureAndUpdate
This commit is contained in:
parent
14e94ea232
commit
deff3ed41b
@ -81,19 +81,18 @@ void PdmUiSliderEditor::configureAndUpdateUi(const QString& uiConfigName)
|
||||
m_spinBox->blockSignals(true);
|
||||
m_spinBox->setMinimum(m_attributes.m_minimum);
|
||||
m_spinBox->setMaximum(m_attributes.m_maximum);
|
||||
|
||||
QString textValue = uiField()->uiValue().toString();
|
||||
m_spinBox->setValue(textValue.toInt());
|
||||
m_spinBox->blockSignals(false);
|
||||
}
|
||||
|
||||
{
|
||||
m_slider->blockSignals(true);
|
||||
m_slider->setRange(m_attributes.m_minimum, m_attributes.m_maximum);
|
||||
updateSliderPosition();
|
||||
m_slider->blockSignals(false);
|
||||
}
|
||||
|
||||
QString textValue = uiField()->uiValue().toString();
|
||||
m_spinBox->setValue(textValue.toInt());
|
||||
|
||||
updateSliderPosition();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user