Skip to content
Permalink
Browse files

fix building without gui (#8561)

  • Loading branch information
3nids committed Nov 27, 2018
1 parent a6d2344 commit 6e7d56c26d06649d6a7b6c3a60928b134e9a5dad
Showing with 4 additions and 4 deletions.
  1. +3 −2 src/providers/ogr/qgsgeopackagedataitems.cpp
  2. +1 −2 src/providers/ogr/qgsgeopackagedataitems.h
@@ -31,6 +31,7 @@
#include "qgsogrprovider.h"
#include "qgsogrdataitems.h"
#ifdef HAVE_GUI
#include "qgsnewnamedialog.h"
#include "qgsnewgeopackagelayerdialog.h"
#endif
#include "qgsmessageoutput.h"
@@ -39,7 +40,7 @@
#include "qgstaskmanager.h"
#include "qgsproviderregistry.h"
#include "qgsproxyprogresstask.h"
#include "qgsnewnamedialog.h"


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

@@ -781,6 +782,7 @@ QList<QString> QgsGeoPackageAbstractLayerItem::tableNames()
return names;
}


QList<QgsMapLayer *> QgsGeoPackageAbstractLayerItem::layersInProject() const
{
// Check if the layer(s) are in the registry
@@ -796,7 +798,6 @@ QList<QgsMapLayer *> QgsGeoPackageAbstractLayerItem::layersInProject() const
return layersList;
}


QgsGeoPackageVectorLayerItem::QgsGeoPackageVectorLayerItem( QgsDataItem *parent, const QString &name, const QString &path, const QString &uri, LayerType layerType )
: QgsGeoPackageAbstractLayerItem( parent, name, path, uri, layerType, QStringLiteral( "ogr" ) )
{
@@ -43,11 +43,10 @@ class QgsGeoPackageAbstractLayerItem : public QgsLayerItem
*/
QList<QString> tableNames();

#ifdef HAVE_GUI

//! Checks if the data source has any layer in the current project returns them
QList<QgsMapLayer *> layersInProject() const;

#ifdef HAVE_GUI
QList<QAction *> actions( QWidget *menu ) override;

public slots:

0 comments on commit 6e7d56c

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