Skip to content

Commit

Permalink
remove unused provider mManagerMode member
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 4, 2017
1 parent d0ebcd9 commit e977f1f
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 25 deletions.
3 changes: 0 additions & 3 deletions src/gui/qgsowssourceselect.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,6 @@ class GUI_EXPORT QgsOWSSourceSelect : public QDialog, public Ui::QgsOWSSourceSel
//! Service name
QString mService;

//! Connections manager mode
bool mManagerMode;

//! Embedded mode, without 'Close'
QgsProviderRegistry::WidgetMode mWidgetMode = QgsProviderRegistry::WidgetMode::None;

Expand Down
3 changes: 0 additions & 3 deletions src/providers/db2/qgsdb2sourceselect.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,6 @@ class QgsDb2SourceSelect : public QDialog, private Ui::QgsDbSourceSelectBase
typedef QPair<QString, QString> geomPair;
typedef QList<geomPair> geomCol;

//! Connections manager mode
bool mManagerMode;

//! Embedded mode, without 'Close'
QgsProviderRegistry::WidgetMode mWidgetMode = QgsProviderRegistry::WidgetMode::None;

Expand Down
3 changes: 0 additions & 3 deletions src/providers/mssql/qgsmssqlsourceselect.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@ class QgsMssqlSourceSelect : public QDialog, private Ui::QgsDbSourceSelectBase
typedef QPair<QString, QString> geomPair;
typedef QList<geomPair> geomCol;

//! Connections manager mode
bool mManagerMode;

//! Embedded mode, without 'Close'
QgsProviderRegistry::WidgetMode mWidgetMode = QgsProviderRegistry::WidgetMode::None;

Expand Down
2 changes: 1 addition & 1 deletion src/providers/oracle/qgsoracledataitems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ QList<QAction *> QgsOracleRootItem::actions()

QWidget *QgsOracleRootItem::paramWidget()
{
QgsOracleSourceSelect *select = new QgsOracleSourceSelect( 0, 0, true, true );
QgsOracleSourceSelect *select = new QgsOracleSourceSelect();
connect( select, SIGNAL( connectionsChanged() ), this, SLOT( connectionsChanged() ) );
return select;
}
Expand Down
1 change: 0 additions & 1 deletion src/providers/oracle/qgsoracleprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "qgscoordinatereferencesystem.h"
#include "qgsvectorlayerexporter.h"
#include "qgslogger.h"
#include "qgsproviderregistry.h"

#include "qgsoracleprovider.h"
#include "qgsoracletablemodel.h"
Expand Down
12 changes: 4 additions & 8 deletions src/providers/oracle/qgsoraclesourceselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ void QgsOracleSourceSelectDelegate::setModelData( QWidget *editor, QAbstractItem

QgsOracleSourceSelect::QgsOracleSourceSelect( QWidget *parent, Qt::WindowFlags fl, QgsProviderRegistry::WidgetMode widgetMode )
: QDialog( parent, fl )
, mManagerMode( managerMode )
, mWidgetMode( widgetMode )
, mColumnTypeThread( 0 )
, mIsConnected( false )
Expand All @@ -191,14 +190,11 @@ QgsOracleSourceSelect::QgsOracleSourceSelect( QWidget *parent, Qt::WindowFlags f
mBuildQueryButton->setToolTip( tr( "Set Filter" ) );
mBuildQueryButton->setDisabled( true );

if ( !mManagerMode )
{
buttonBox->addButton( mAddButton, QDialogButtonBox::ActionRole );
connect( mAddButton, SIGNAL( clicked() ), this, SLOT( addTables() ) );
buttonBox->addButton( mAddButton, QDialogButtonBox::ActionRole );
connect( mAddButton, SIGNAL( clicked() ), this, SLOT( addTables() ) );

buttonBox->addButton( mBuildQueryButton, QDialogButtonBox::ActionRole );
connect( mBuildQueryButton, SIGNAL( clicked() ), this, SLOT( buildQuery() ) );
}
buttonBox->addButton( mBuildQueryButton, QDialogButtonBox::ActionRole );
connect( mBuildQueryButton, SIGNAL( clicked() ), this, SLOT( buildQuery() ) );

mSearchModeComboBox->addItem( tr( "Wildcard" ) );
mSearchModeComboBox->addItem( tr( "RegExp" ) );
Expand Down
4 changes: 1 addition & 3 deletions src/providers/oracle/qgsoraclesourceselect.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "qgsoracletablemodel.h"
#include "qgshelp.h"
#include "qgsoracleconnpool.h"
#include "qgsproviderregistry.h"

#include <QMap>
#include <QPair>
Expand Down Expand Up @@ -142,9 +143,6 @@ class QgsOracleSourceSelect : public QDialog, private Ui::QgsDbSourceSelectBase
typedef QPair<QString, QString> geomPair;
typedef QList<geomPair> geomCol;

//! Connections manager mode
bool mManagerMode;

//! Embedded mode, without 'Close'
QgsProviderRegistry::WidgetMode mWidgetMode = QgsProviderRegistry::WidgetMode::None;

Expand Down
3 changes: 0 additions & 3 deletions src/providers/wms/qgswmssourceselect.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ class QgsWMSSourceSelect : public QDialog, private Ui::QgsWMSSourceSelectBase
//! Add a few example servers to the list.
void addDefaultServers();

//! Connections manager mode
bool mManagerMode;

//! Embedded mode, without 'Close'
QgsProviderRegistry::WidgetMode mWidgetMode = QgsProviderRegistry::WidgetMode::None;

Expand Down

0 comments on commit e977f1f

Please sign in to comment.