Skip to content
Snippets Groups Projects
Commit 60eca795 authored by Stéphane Albert's avatar Stéphane Albert
Browse files

ENH: Added signal in QtWidgetInputImageListParameter and...

ENH: Added signal in QtWidgetInputImageListParameter and QtWidgetInputFilenameListParameter when adding filename entry in list.
parent 086b5c90
No related branches found
No related tags found
No related merge requests found
...@@ -304,6 +304,8 @@ QtWidgetInputFilenameListParameter::AddFile() ...@@ -304,6 +304,8 @@ QtWidgetInputFilenameListParameter::AddFile()
m_Scroll->setWidget(mainGroup); m_Scroll->setWidget(mainGroup);
this->update(); this->update();
emit FileSelectionWidgetAdded( fileSelection );
} }
void void
......
...@@ -41,6 +41,7 @@ public: ...@@ -41,6 +41,7 @@ public:
signals: signals:
void Change(); void Change();
void FileSelectionWidgetAdded( QWidget * );
protected slots: protected slots:
//void SetFileName( const QString& value ); //void SetFileName( const QString& value );
......
...@@ -313,13 +313,20 @@ QtWidgetInputImageListParameter::AddFile() ...@@ -313,13 +313,20 @@ QtWidgetInputImageListParameter::AddFile()
m_FileSelectionList.push_back(fileSelection); m_FileSelectionList.push_back(fileSelection);
/* No need of AddNullElement() here. Moved adding NullElement when updating the list */ /* No need of AddNullElement() here. Moved adding NullElement when updating the list */
//m_InputImageListParam->AddNullElement(); //m_InputImageListParam->AddNullElement();
connect(fileSelection->GetInput(), SIGNAL(textChanged(const QString&)), this, SLOT(UpdateImageList())); connect(
fileSelection->GetInput(),
SIGNAL( textChanged( const QString & ) ),
this,
SLOT( UpdateImageList() )
);
QGroupBox *mainGroup = new QGroupBox(); QGroupBox *mainGroup = new QGroupBox();
mainGroup->setLayout(m_FileLayout); mainGroup->setLayout(m_FileLayout);
m_Scroll->setWidget(mainGroup); m_Scroll->setWidget(mainGroup);
this->update(); this->update();
emit FileSelectionWidgetAdded( fileSelection );
} }
void void
......
...@@ -41,6 +41,7 @@ public: ...@@ -41,6 +41,7 @@ public:
signals: signals:
void Change(); void Change();
void FileSelectionWidgetAdded( QWidget * );
protected slots: protected slots:
//void SetFileName( const QString& value ); //void SetFileName( const QString& value );
......
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