Skip to content
Permalink
Browse files

hide filter details (extensions string) from the open vector and open

raster layer dialogs
  • Loading branch information
alexbruy authored and nyalldawson committed May 7, 2020
1 parent df4bf42 commit 3e2647e3666e464d9aa5c62a541ab8a04c26e712
@@ -70,6 +70,7 @@ QgsGdalSourceSelect::QgsGdalSourceSelect( QWidget *parent, Qt::WindowFlags fl, Q
mFileWidget->setDialogTitle( tr( "Open GDAL Supported Raster Dataset(s)" ) );
mFileWidget->setFilter( QgsProviderRegistry::instance()->fileRasterFilters() );
mFileWidget->setStorageMode( QgsFileWidget::GetMultipleFiles );
mFileWidget->setOptions( QFileDialog::HideNameFilterDetails );
connect( mFileWidget, &QgsFileWidget::fileChanged, this, [ = ]( const QString & path )
{
mRasterPath = path;
@@ -111,6 +111,7 @@ QgsOgrSourceSelect::QgsOgrSourceSelect( QWidget *parent, Qt::WindowFlags fl, Qgs
mFileWidget->setDialogTitle( tr( "Open OGR Supported Vector Dataset(s)" ) );
mFileWidget->setFilter( mVectorFileFilter );
mFileWidget->setStorageMode( QgsFileWidget::GetMultipleFiles );
mFileWidget->setOptions( QFileDialog::HideNameFilterDetails );

connect( mFileWidget, &QgsFileWidget::fileChanged, this, [ = ]( const QString & path )
{
@@ -244,7 +244,7 @@ void QgsGeorefPluginGui::openRaster()
QString filters = QgsProviderRegistry::instance()->fileRasterFilters();
filters.prepend( otherFiles + ";;" );
filters.chop( otherFiles.size() + 2 );
mRasterFileName = QFileDialog::getOpenFileName( this, tr( "Open Raster" ), dir, filters, &lastUsedFilter );
mRasterFileName = QFileDialog::getOpenFileName( this, tr( "Open Raster" ), dir, filters, &lastUsedFilter, QFileDialog::HideNameFilterDetails );
mModifiedRasterFileName.clear();

if ( mRasterFileName.isEmpty() )

0 comments on commit 3e2647e

Please sign in to comment.
You can’t perform that action at this time.