Skip to content
Permalink
Browse files

fix build without GUI

  • Loading branch information
3nids committed Oct 22, 2018
1 parent dfb28fe commit 225c9227af7946454b95a72a3ed2cc30078237b9
Showing with 10 additions and 6 deletions.
  1. +4 −0 src/providers/mssql/qgsmssqldataitems.cpp
  2. +6 −6 src/providers/ogr/qgsgeopackagedataitems.cpp
@@ -557,6 +557,7 @@ QgsMssqlLayerItem::QgsMssqlLayerItem( QgsDataItem *parent, const QString &name,
setState( Populated );
}

#ifdef HAVE_GUI
QList<QAction *> QgsMssqlLayerItem::actions( QWidget *actionParent )
{
QgsMssqlConnectionItem *connItem = qobject_cast<QgsMssqlConnectionItem *>( parent() ? parent()->parent() : nullptr );
@@ -610,6 +611,7 @@ QList<QAction *> QgsMssqlLayerItem::actions( QWidget *actionParent )
lst.append( actionTruncateLayer );
return lst;
}
#endif

QgsMssqlLayerItem *QgsMssqlLayerItem::createClone()
{
@@ -658,6 +660,7 @@ QVector<QgsDataItem *> QgsMssqlSchemaItem::createChildren()
return QVector<QgsDataItem *>();
}

#ifdef HAVE_GUI
QList<QAction *> QgsMssqlSchemaItem::actions( QWidget *parent )
{
QList<QAction *> lst;
@@ -672,6 +675,7 @@ QList<QAction *> QgsMssqlSchemaItem::actions( QWidget *parent )

return lst;
}
#endif

void QgsMssqlSchemaItem::addLayers( QgsDataItem *newLayers )
{
@@ -13,6 +13,11 @@
* *
***************************************************************************/

#include <QAction>
#include <QMessageBox>
#include <QFileDialog>
#include <QInputDialog>

#include <sqlite3.h>

#include "qgssqliteutils.h"
@@ -27,18 +32,13 @@
#include "qgsogrdataitems.h"
#ifdef HAVE_GUI
#include "qgsnewgeopackagelayerdialog.h"
#include "qgsproxyprogresstask.h"
#endif
#include "qgsmessageoutput.h"
#include "qgsvectorlayerexporter.h"
#include "qgsgeopackagerasterwritertask.h"
#include "qgstaskmanager.h"
#include "qgsproviderregistry.h"

#include <QAction>
#include <QMessageBox>
#include <QFileDialog>
#include <QInputDialog>
#include "qgsproxyprogresstask.h"

QGISEXTERN bool deleteLayer( const QString &uri, const QString &errCause );

0 comments on commit 225c922

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