Skip to content
Snippets Groups Projects
Commit 2a93300f authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH: missing connection to notify changes on the paramters

parent bac49c0d
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,7 @@ void QtWidgetChoiceParameter::DoCreateWidget()
connect( m_ComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(SetValue(int)) );
connect( m_ComboBox, SIGNAL(currentIndexChanged(int)), m_StackWidget, SLOT(setCurrentIndex(int)) );
connect( m_ComboBox, SIGNAL(currentIndexChanged(int)), GetModel(), SLOT(NotifyUpdate()) );
m_VLayout = new QVBoxLayout;
m_VLayout->addWidget(m_ComboBox);
......
......@@ -34,6 +34,10 @@ QtWidgetFloatParameter::~QtWidgetFloatParameter()
void QtWidgetFloatParameter::DoUpdateGUI()
{
// TODO : search for a better solution
m_QDoubleSpinBox->setRange(m_FloatParam->GetMinimumValue(),
m_FloatParam->GetMaximumValue());
bool signalsBlocked = m_QDoubleSpinBox->blockSignals( true );
if (m_FloatParam->HasValue())
......@@ -62,6 +66,7 @@ void QtWidgetFloatParameter::DoCreateWidget()
m_QDoubleSpinBox = new QDoubleSpinBox;
m_QDoubleSpinBox->setDecimals(5);
m_QDoubleSpinBox->setSingleStep(0.1);
m_QDoubleSpinBox->setRange(m_FloatParam->GetMinimumValue(), m_FloatParam->GetMaximumValue());
m_QDoubleSpinBox->setToolTip(m_FloatParam->GetDescription());
......
......@@ -74,6 +74,7 @@ void QtWidgetParameterGroup::DoCreateWidget()
// CheckBox (col 1)
QCheckBox * checkBox = new QCheckBox;
connect(checkBox, SIGNAL(clicked(bool)), specificWidget, SLOT(SetActivationState(bool)));
connect( checkBox, SIGNAL(clicked(bool)), GetModel(), SLOT(NotifyUpdate()) );
if (param->IsRoot())
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment