Skip to content
Snippets Groups Projects
Commit e4c2f472 authored by Julien Malik's avatar Julien Malik
Browse files

BUG: fix integer widget activation

parent d39453f5
Branches
Tags
No related merge requests found
......@@ -55,6 +55,7 @@ private:
AddParameter(ParameterType_Int, "int", "Integer");
MandatoryOff("int");
AddParameter(ParameterType_Float, "float", "Float");
MandatoryOff("float");
AddParameter(ParameterType_String, "string", "String");
AddParameter(ParameterType_Filename, "filename", "File name");
AddParameter(ParameterType_Directory, "directory", "Directory name");
......
......@@ -53,7 +53,7 @@ QtWidgetModel* QtWidgetParameterBase::GetModel()
// Slot connected to the signal emitted the checkBox relative to
// current widget
void QtWidgetParameterBase::SetValue( int value )
void QtWidgetParameterBase::SetActivationState( int value )
{
switch(value)
{
......
......@@ -41,7 +41,7 @@ public:
public slots:
void UpdateGUI();
void SetValue( int value );
void SetActivationState( int value );
void SetValue( bool v );
protected slots:
......
......@@ -73,7 +73,7 @@ void QtWidgetParameterGroup::DoCreateWidget()
// CheckBox (col 1)
QCheckBox * checkBox = new QCheckBox;
connect(checkBox, SIGNAL(stateChanged(int)), specificWidget, SLOT(SetValue(int)));
connect(checkBox, SIGNAL(stateChanged(int)), specificWidget, SLOT(SetActivationState(int)));
if (param->IsRoot())
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment