Skip to content
Permalink
Browse files

fix build without GUI (#8405)

  • Loading branch information
3nids committed Nov 2, 2018
1 parent 7b5926f commit a205927eac0b66c07d9e7acc1326b195687d565f
Showing with 12 additions and 10 deletions.
  1. +12 −10 src/providers/ogr/qgsogrprovider.cpp
@@ -6376,6 +6376,18 @@ QGISEXTERN QList<QgsSourceSelectProvider *> *sourceSelectProviders()
return providers;
}

QString QgsGeoPackageSourceSelectProvider::name() const { return QStringLiteral( "GeoPackage" ); }

QgsAbstractDataSourceWidget *QgsGeoPackageSourceSelectProvider::createDataSourceWidget( QWidget *parent, Qt::WindowFlags fl, QgsProviderRegistry::WidgetMode widgetMode ) const
{
return new QgsOgrDbSourceSelect( QStringLiteral( "GPKG" ), QObject::tr( "GeoPackage" ), QObject::tr( "GeoPackage Database (*.gpkg)" ), parent, fl, widgetMode );
}

QgsAbstractDataSourceWidget *QgsOgrVectorSourceSelectProvider::createDataSourceWidget( QWidget *parent, Qt::WindowFlags fl, QgsProviderRegistry::WidgetMode widgetMode ) const
{
return new QgsOgrSourceSelect( parent, fl, widgetMode );
}

#endif

void QgsOgrLayerReleaser::operator()( QgsOgrLayer *layer )
@@ -6396,14 +6408,4 @@ QGISEXTERN QgsTransaction *createTransaction( const QString &connString )
return new QgsOgrTransaction( connString, ds );
}

QString QgsGeoPackageSourceSelectProvider::name() const { return QStringLiteral( "GeoPackage" ); }

QgsAbstractDataSourceWidget *QgsGeoPackageSourceSelectProvider::createDataSourceWidget( QWidget *parent, Qt::WindowFlags fl, QgsProviderRegistry::WidgetMode widgetMode ) const
{
return new QgsOgrDbSourceSelect( QStringLiteral( "GPKG" ), QObject::tr( "GeoPackage" ), QObject::tr( "GeoPackage Database (*.gpkg)" ), parent, fl, widgetMode );
}

QgsAbstractDataSourceWidget *QgsOgrVectorSourceSelectProvider::createDataSourceWidget( QWidget *parent, Qt::WindowFlags fl, QgsProviderRegistry::WidgetMode widgetMode ) const
{
return new QgsOgrSourceSelect( parent, fl, widgetMode );
}

0 comments on commit a205927

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