- // Show dialog and check if it was accepted
- QFileDialog dialog( parent );
- dialog.setFileMode( QFileDialog::ExistingFiles );
- dialog.setDirectory( QFileDialog::tr( name.c_str( ) ) );
- dialog.setNameFilters( filters );
- dialog.setAcceptMode( QFileDialog::AcceptOpen );
- if( dialog.exec( ) )
- {
- QStringList names = dialog.selectedFiles( );
- QStringList::const_iterator qIt = names.begin( );
- for( ; qIt != names.end( ); ++qIt )
- this->m_Parameters->AddToStringList(
- "FileNames", qIt->toStdString( )
- );
- this->m_Parameters->SetBool( "VectorType", false );
- r = Self::DialogResult_NoModal;
+ // Show dialog and check if it was accepted
+ QFileDialog dialog( parent );
+ dialog.setFileMode( QFileDialog::ExistingFiles );
+ dialog.setDirectory( QFileDialog::tr( name.c_str( ) ) );
+ dialog.setNameFilters( filters );
+ dialog.setAcceptMode( QFileDialog::AcceptOpen );
+ if( dialog.exec( ) )
+ {
+ QStringList names = dialog.selectedFiles( );
+ QStringList::const_iterator qIt = names.begin( );
+ for( ; qIt != names.end( ); ++qIt )
+ this->m_Parameters->AddToStringList(
+ "FileNames", qIt->toStdString( )
+ );
+ this->m_Parameters->SetBool( "VectorType", false );
+ r = Self::DialogResult_NoModal;