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

ENH : connect the parameters with the slot UpdateGUI

parent b63b08df
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ void QtWidgetFloatParameter::DoCreateWidget()
connect( m_QDoubleSpinBox, SIGNAL(valueChanged(double)), this, SLOT(SetValue(double)) );
connect( m_QDoubleSpinBox, SIGNAL(valueChanged(double)), GetModel(), SLOT(NotifyUpdate()) );
connect( GetModel(), SIGNAL(UpdateGui()), this, SLOT(SetUpdateGui() ) );
connect( GetModel(), SIGNAL(UpdateGui()), this, SLOT(UpdateGUI() ) );
m_QHBoxLayout->addWidget(m_QDoubleSpinBox);
m_QHBoxLayout->addStretch();
......@@ -76,11 +76,6 @@ void QtWidgetFloatParameter::DoCreateWidget()
}
void QtWidgetFloatParameter::SetUpdateGui()
{
this->DoUpdateGUI();
}
void QtWidgetFloatParameter::SetValue(double value)
{
m_FloatParam->SetValue( static_cast<float>(value) );
......
......@@ -39,7 +39,6 @@ public:
protected slots:
void SetValue( double value );
void SetUpdateGui();
private:
QtWidgetFloatParameter(const QtWidgetFloatParameter&); //purposely not implemented
......
......@@ -45,7 +45,7 @@ void QtWidgetIntParameter::DoCreateWidget()
connect( m_QSpinBox, SIGNAL(valueChanged(int)), this, SLOT(SetValue(int)) );
connect( m_QSpinBox, SIGNAL(valueChanged(int)), GetModel(), SLOT(NotifyUpdate()) );
connect( GetModel(), SIGNAL(UpdateGui()), this, SLOT(SetUpdateGui() ) );
connect( GetModel(), SIGNAL(UpdateGui()), this, SLOT(UpdateGUI() ) );
m_QHBoxLayout->addWidget(m_QSpinBox);
m_QHBoxLayout->addStretch();
......@@ -53,11 +53,6 @@ void QtWidgetIntParameter::DoCreateWidget()
this->setLayout(m_QHBoxLayout);
}
void QtWidgetIntParameter::SetUpdateGui()
{
this->DoUpdateGUI();
}
void QtWidgetIntParameter::DoUpdateGUI()
{
bool signalsBlocked = m_QSpinBox->blockSignals( true );
......
......@@ -40,7 +40,6 @@ public:
protected slots:
void SetValue( int value );
void SetUpdateGui();
private:
QtWidgetIntParameter(const QtWidgetIntParameter&); //purposely not implemented
......
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