Commit d1f4b010 authored by Otmane Lahlou's avatar Otmane Lahlou

ENH: use the right object signal

parent 64b21753
......@@ -196,7 +196,7 @@ void QtWidgetInputImageListParameter::RecreateImageList()
for(unsigned int j=0; j<m_FileSelectionList.size(); j++ )
{
m_InputImageListParam->AddFromFileName(m_FileSelectionList[j]->GetFilename());
connect( m_FileSelectionList[j]->GetInput(), SIGNAL(textChanged(const QString&)), this, SLOT(UpdateImageList()) );
connect( m_FileSelectionList[j], SIGNAL(textChanged(const QString&)), this, SLOT(UpdateImageList()) );
}
emit Change();
......@@ -348,7 +348,7 @@ QtWidgetInputImageListParameter::AddFile()
m_FileLayout->addWidget( fileSelection );
m_FileSelectionList.push_back(fileSelection);
m_InputImageListParam->AddNullElement();
connect( fileSelection->GetInput(), SIGNAL(textChanged(const QString&)), this, SLOT(UpdateImageList()) );
connect( fileSelection, SIGNAL(textChanged(const QString&)), this, SLOT(UpdateImageList()) );
QGroupBox *mainGroup = new QGroupBox();
mainGroup->setLayout(m_FileLayout);
......@@ -396,7 +396,7 @@ QtWidgetInputImageListParameter::EraseFile()
m_FileLayout->addWidget( fileSelection );
m_FileSelectionList.push_back(fileSelection);
m_InputImageListParam->AddNullElement();
connect( fileSelection->GetInput(), SIGNAL(textChanged(const QString&)), this, SLOT(UpdateImageList()) );
connect( fileSelection, SIGNAL(textChanged(const QString&)), this, SLOT(UpdateImageList()) );
QGroupBox *mainGroup = new QGroupBox();
mainGroup->setLayout(m_FileLayout);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment