Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove pseudo options HAVE_MSSQL, HAVE_DB2, HAVE_SPATIALITE
and HAVE_PYTHON
  • Loading branch information
jef-n committed Apr 3, 2016
1 parent 1cbcf49 commit 5e54b93
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 40 deletions.
10 changes: 0 additions & 10 deletions CMakeLists.txt
Expand Up @@ -233,16 +233,6 @@ IF (POSTGRES_FOUND)
SET (HAVE_POSTGRESQL TRUE)
ENDIF (POSTGRES_FOUND)

# following variable is used in qgsconfig.h
SET (HAVE_SPATIALITE TRUE)

# following variable is used in qgsconfig.h
SET (HAVE_MSSQL TRUE)


# following variable is used in qgsconfig.h
SET (HAVE_DB2 TRUE)

SET (WITH_QTWEBKIT TRUE CACHE INTERNAL "Enable QtWebkit support")
IF (WITH_QTWEBKIT)
ADD_DEFINITIONS(-DWITH_QTWEBKIT)
Expand Down
8 changes: 0 additions & 8 deletions cmake_templates/qgsconfig.h.in
Expand Up @@ -42,16 +42,8 @@

#cmakedefine HAVE_POSTGRESQL

#cmakedefine HAVE_SPATIALITE

#cmakedefine HAVE_MSSQL

#cmakedefine HAVE_DB2

#cmakedefine HAVE_ORACLE

#cmakedefine HAVE_PYTHON

#cmakedefine HAVE_TOUCH

#cmakedefine HAVE_OSGEARTHQT
Expand Down
18 changes: 0 additions & 18 deletions src/app/qgisapp.cpp
Expand Up @@ -1551,16 +1551,6 @@ void QgisApp::createActions()
mActionAddPgLayer = 0;
#endif

#ifndef HAVE_MSSQL
delete mActionAddMssqlLayer;
mActionAddMssqlLayer = 0;
#endif

#ifndef HAVE_DB2
delete mActionAddDb2Layer;
mActionAddDb2Layer = 0;
#endif

#ifndef HAVE_ORACLE
delete mActionAddOracleLayer;
mActionAddOracleLayer = nullptr;
Expand Down Expand Up @@ -2224,12 +2214,8 @@ void QgisApp::setTheme( const QString& theThemeName )
#endif
mActionNewSpatiaLiteLayer->setIcon( QgsApplication::getThemeIcon( "/mActionNewSpatiaLiteLayer.svg" ) );
mActionAddSpatiaLiteLayer->setIcon( QgsApplication::getThemeIcon( "/mActionAddSpatiaLiteLayer.svg" ) );
#ifdef HAVE_MSSQL
mActionAddMssqlLayer->setIcon( QgsApplication::getThemeIcon( "/mActionAddMssqlLayer.svg" ) );
#endif
#ifdef HAVE_DB2
mActionAddDb2Layer->setIcon( QgsApplication::getThemeIcon( "/mActionAddDb2Layer.svg" ) );
#endif
#ifdef HAVE_ORACLE
mActionAddOracleLayer->setIcon( QgsApplication::getThemeIcon( "/mActionAddOracleLayer.svg" ) );
#endif
Expand Down Expand Up @@ -3866,7 +3852,6 @@ void QgisApp::replaceSelectedVectorLayer( const QString& oldId, const QString& u

void QgisApp::addMssqlLayer()
{
#ifdef HAVE_MSSQL
// show the MSSQL dialog
QDialog *dbs = dynamic_cast<QDialog*>( QgsProviderRegistry::instance()->selectWidget( "mssql", this ) );
if ( !dbs )
Expand All @@ -3878,12 +3863,10 @@ void QgisApp::addMssqlLayer()
this, SLOT( addDatabaseLayers( QStringList const &, QString const & ) ) );
dbs->exec();
delete dbs;
#endif
} // QgisApp::addMssqlLayer()

void QgisApp::addDb2Layer()
{
#ifdef HAVE_DB2
// show the DB2 dialog
QgsDebugMsg( "Show dialog for DB2 " );
QDialog *dbs = dynamic_cast<QDialog*>( QgsProviderRegistry::instance()->selectWidget( "DB2", this ) );
Expand All @@ -3896,7 +3879,6 @@ void QgisApp::addDb2Layer()
this, SLOT( addDatabaseLayers( QStringList const &, QString const & ) ) );
dbs->exec();
delete dbs;
#endif
} // QgisApp::addDb2Layer()

void QgisApp::addOracleLayer()
Expand Down
4 changes: 0 additions & 4 deletions src/app/qgisapp.h
Expand Up @@ -717,14 +717,10 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
void addSelectedVectorLayer( const QString& uri, const QString& layerName, const QString& provider );
//! Replace the selected layer by a vector layer defined by uri, layer name, data source uri
void replaceSelectedVectorLayer( const QString& oldId, const QString& uri, const QString& layerName, const QString& provider );
//#ifdef HAVE_MSSQL
//! Add a MSSQL layer to the map
void addMssqlLayer();
//#endif
//#ifdef HAVE_DB2
//! Add a DB2 layer to the map
void addDb2Layer();
//#endif
//#ifdef HAVE_ORACLE
//! Add a Oracle layer to the map
void addOracleLayer();
Expand Down

0 comments on commit 5e54b93

Please sign in to comment.