|
27 | 27 | #include "qgsmapcanvas.h"
|
28 | 28 | #include "qgsmessagelog.h"
|
29 | 29 | #include "qgsgui.h"
|
30 |
| -//#include "qgsgeonodesourceselect.h" |
31 | 30 |
|
32 | 31 | QgsDataSourceManagerDialog::QgsDataSourceManagerDialog( QgsBrowserModel *browserModel, QWidget *parent, QgsMapCanvas *canvas, Qt::WindowFlags fl ) :
|
33 | 32 | QgsOptionsDialogBase( QStringLiteral( "Data Source Manager" ), parent, fl ),
|
@@ -72,15 +71,6 @@ QgsDataSourceManagerDialog::QgsDataSourceManagerDialog( QgsBrowserModel *browser
|
72 | 71 | addProviderDialog( dlg, provider->providerKey(), provider->text(), provider->icon( ), provider->toolTip( ) );
|
73 | 72 | }
|
74 | 73 |
|
75 |
| - /* |
76 |
| - QDialog *geonodeDialog = new QgsGeoNodeSourceSelect( this, Qt::Widget, QgsProviderRegistry::WidgetMode::Embedded ); |
77 |
| - QDialog *dlg = addDialog( geonodeDialog, QStringLiteral( "geonode" ), tr( "GeoNode" ), QStringLiteral( "/mActionAddGeonodeLayer.svg" ) ); |
78 |
| -
|
79 |
| - if ( dlg ) |
80 |
| - { |
81 |
| - connect( dlg, SIGNAL( addRasterLayer( QString, QString, QString ) ), this, SLOT( rasterLayerAdded( QString, QString, QString ) ) ); |
82 |
| - connect( dlg, SIGNAL( addWfsLayer( QString, QString, QString ) ), this, SLOT( vectorLayerAdded( QString, QString, QString ) ) ); |
83 |
| - }*/ |
84 | 74 | }
|
85 | 75 |
|
86 | 76 | QgsDataSourceManagerDialog::~QgsDataSourceManagerDialog()
|
@@ -131,15 +121,6 @@ void QgsDataSourceManagerDialog::vectorLayersAdded( const QStringList &layerQStr
|
131 | 121 | emit addVectorLayers( layerQStringList, enc, dataSourceType );
|
132 | 122 | }
|
133 | 123 |
|
134 |
| -QDialog *QgsDataSourceManagerDialog::addDialog( QDialog *dialog, QString const key, QString const name, QString const icon, QString title ) |
135 |
| -{ |
136 |
| - mPageNames.append( key ); |
137 |
| - ui->mOptionsStackedWidget->addWidget( dialog ); |
138 |
| - QListWidgetItem *layerItem = new QListWidgetItem( name, ui->mOptionsListWidget ); |
139 |
| - layerItem->setToolTip( title.isEmpty() ? tr( "Add %1 layer" ).arg( name ) : title ); |
140 |
| - layerItem->setIcon( QgsApplication::getThemeIcon( icon ) ); |
141 |
| - return dialog; |
142 |
| -} |
143 | 124 |
|
144 | 125 | void QgsDataSourceManagerDialog::addProviderDialog( QgsAbstractDataSourceWidget *dlg, const QString &providerKey, const QString &providerName, const QIcon &icon, const QString &toolTip )
|
145 | 126 | {
|
|
0 commit comments