Skip to content

Commit

Permalink
Remove unnecessary includes
Browse files Browse the repository at this point in the history
  • Loading branch information
peppsac committed Jan 22, 2019
1 parent 4048d37 commit 96a9a72
Show file tree
Hide file tree
Showing 30 changed files with 32 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@




class QgsAnnotation : QObject
{
%Docstring
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@




%ModuleHeaderCode
#include "qgsmeshlayerinterpolator.h"
%End
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@




class QgsProjectMetadata : QgsAbstractMetadataBase
{
%Docstring
Expand Down
3 changes: 2 additions & 1 deletion src/core/annotations/qgsannotation.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
#include "qgis.h"
#include "qgspointxy.h"
#include "qgscoordinatereferencesystem.h"
#include "qgsrendercontext.h"
#include "qgssymbol.h"
#include "qgsmargins.h"
#include "qgsmaplayer.h"

class QgsRenderContext;

/**
* \ingroup core
* \class QgsAnnotation
Expand Down
3 changes: 0 additions & 3 deletions src/core/diagram/qgsdiagram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
***************************************************************************/
#include "qgsdiagram.h"
#include "qgsdiagramrenderer.h"
#include "qgsrendercontext.h"
#include "qgsexpression.h"
#include "qgssymbollayerutils.h"

#include <QPainter>

Expand Down
1 change: 1 addition & 0 deletions src/core/geometry/qgsgeometryfactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#define SIP_NO_FILE

#include "qgis_core.h"
#include "qgswkbtypes.h"
#include <QString>
#include <memory>

Expand Down
2 changes: 1 addition & 1 deletion src/core/mesh/qgsmeshlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@

#include "qgis_core.h"
#include "qgsmaplayer.h"
#include "qgsrendercontext.h"
#include "qgsmeshdataprovider.h"
#include "qgsmeshrenderersettings.h"

class QgsMapLayerRenderer;
struct QgsMeshLayerRendererCache;
class QgsSymbol;
class QgsTriangularMesh;
class QgsRenderContext;
struct QgsMesh;

/**
Expand Down
3 changes: 2 additions & 1 deletion src/core/mesh/qgsmeshlayerinterpolator.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ class QgsMeshDatasetIndex;

#include <QSize>
#include "qgsmaplayerrenderer.h"
#include "qgsrendercontext.h"
#include "qgstriangularmesh.h"
#include "qgsrasterinterface.h"
#include "qgssinglebandpseudocolorrenderer.h"
#include "qgsrastershader.h"

class QgsRenderContext;

#ifdef SIP_RUN
% ModuleHeaderCode
#include "qgsmeshlayerinterpolator.h"
Expand Down
3 changes: 2 additions & 1 deletion src/core/mesh/qgsmeshlayerrenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ class QgsMeshLayer;

#include "qgsmaplayerrenderer.h"
#include "qgsrasterinterface.h"
#include "qgsrendercontext.h"
#include "qgstriangularmesh.h"
#include "qgsmeshlayer.h"
#include "qgssymbol.h"
#include "qgsmeshdataprovider.h"

class QgsRenderContext;

///@cond PRIVATE

/**
Expand Down
3 changes: 2 additions & 1 deletion src/core/mesh/qgsmeshvectorrenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@

#include "qgis_core.h"
#include "qgsmeshdataprovider.h"
#include "qgsrendercontext.h"
#include "qgstriangularmesh.h"
#include "qgsmeshlayer.h"
#include "qgspointxy.h"

class QgsRenderContext;

///@cond PRIVATE

/**
Expand Down
1 change: 1 addition & 0 deletions src/core/metadata/qgslayermetadataformatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* *
***************************************************************************/
#include <QStringBuilder>
#include <QDateTime>

#include "qgslayermetadataformatter.h"
#include "qgslayermetadata.h"
Expand Down
2 changes: 2 additions & 0 deletions src/core/metadata/qgsprojectmetadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include "qgis_core.h"
#include "qgsabstractmetadatabase.h"

#include <QDateTime>

/**
* \ingroup core
* \class QgsProjectMetadata
Expand Down
2 changes: 1 addition & 1 deletion src/core/providers/memory/qgsmemoryproviderutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#define QGSMEMORYPROVIDERUTILS_H

#include "qgis_core.h"
#include "qgis.h"
#include "qgswkbtypes.h"
#include "qgscoordinatereferencesystem.h"
#include <QString>
#include <QVariant>
Expand Down
13 changes: 0 additions & 13 deletions src/core/qgis.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,12 @@
#ifndef QGIS_H
#define QGIS_H

#include <QEvent>
#include <QString>
#include <QMetaType>
#include <QMap>
#include <QMetaEnum>
#include <QVariant>
#include <QDateTime>
#include <QDate>
#include <QTime>
#include <QHash>
#include <cstdlib>
#include <cfloat>
#include <memory>
#include <type_traits>
#include <cmath>
#include <qnumeric.h>

#include "qgstolerance.h"
#include "qgswkbtypes.h"
#include "qgis_core.h"
#include "qgis_sip.h"

Expand Down
1 change: 1 addition & 0 deletions src/core/qgscoordinatereferencesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <QMap>
#include <QHash>
#include <QReadWriteLock>
#include <QExplicitlySharedDataPointer>

//qgis includes
#include "qgis.h"
Expand Down
1 change: 1 addition & 0 deletions src/core/qgscoordinatetransformcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "qgis.h"
#include "qgsdatumtransform.h"

#include <QExplicitlySharedDataPointer>
class QgsCoordinateReferenceSystem;
class QgsReadWriteContext;
class QgsCoordinateTransformContextPrivate;
Expand Down
3 changes: 2 additions & 1 deletion src/core/qgsdatasourceuri.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
#define QGSDATASOURCEURI_H

#include "qgis_core.h"
#include "qgis.h"
#include "qgis_sip.h"
#include "qgswkbtypes.h"

#include <QMap>

Expand Down
1 change: 1 addition & 0 deletions src/core/qgsinterval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <QMap>
#include <QObject>
#include <QDebug>
#include <QDateTime>

/***************************************************************************
* This class is considered CRITICAL and any change MUST be accompanied with
Expand Down
1 change: 0 additions & 1 deletion src/core/qgsmapsettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <QSize>
#include <QStringList>

#include "qgsabstractgeometry.h"
#include "qgscoordinatereferencesystem.h"
#include "qgslabelingenginesettings.h"
#include "qgsmaptopixel.h"
Expand Down
1 change: 0 additions & 1 deletion src/core/qgsrendercontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <QColor>
#include <memory>

#include "qgsabstractgeometry.h"
#include "qgscoordinatetransform.h"
#include "qgsexpressioncontext.h"
#include "qgsfeaturefilterprovider.h"
Expand Down
1 change: 0 additions & 1 deletion src/core/qgsvectorsimplifymethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

#include "qgis.h"
#include "qgsvectorsimplifymethod.h"
#include "qgsvectorlayer.h"

QgsVectorSimplifyMethod::QgsVectorSimplifyMethod()
: mSimplifyHints( Qgis::DEFAULT_MAPTOPIXEL_THRESHOLD > 1 ? QgsVectorSimplifyMethod::FullSimplification : QgsVectorSimplifyMethod::GeometrySimplification )
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvirtuallayerdefinition.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ email : hugo dot mercier at oslandia dot com

#include "qgis_core.h"
#include "qgsfields.h"
#include "qgis.h"
#include "qgswkbtypes.h"

/**
* \ingroup core
Expand Down
3 changes: 2 additions & 1 deletion src/core/symbology/qgsrendererregistry.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
#include <QStringList>
#include <QDomElement>

#include "qgis.h"
// #include "qgis.h"
#include "qgswkbtypes.h"

class QgsFeatureRenderer;
class QgsReadWriteContext;
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsgeometryrubberband.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#define QGSGEOMETRYRUBBERBAND_H

#include "qgsmapcanvasitem.h"
#include "qgis.h"
#include "qgswkbtypes.h"
#include <QBrush>
#include <QPen>
#include "qgis_gui.h"
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsmaptooledit.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef QGSMAPTOOLEDIT_H
#define QGSMAPTOOLEDIT_H

#include "qgis.h"
#include "qgswkbtypes.h"
#include "qgsmaptool.h"
#include "qgis_gui.h"

Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsnewmemorylayerdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "ui_qgsnewmemorylayerdialogbase.h"
#include "qgsguiutils.h"
#include "qgis.h"
#include "qgswkbtypes.h"
#include "qgshelp.h"
#include "qgis_gui.h"

Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsnewvectorlayerdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "qgsguiutils.h"
#include "qgshelp.h"

#include "qgis.h"
#include "qgswkbtypes.h"
#include "qgis_gui.h"

/**
Expand Down
2 changes: 1 addition & 1 deletion src/providers/mssql/qgsmssqltablemodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <QStandardItemModel>

#include "qgis.h"
#include "qgswkbtypes.h"

//! Layer Property structure
struct QgsMssqlLayerProperty
Expand Down
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspgtablemodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define QGSPGTABLEMODEL_H
#include <QStandardItemModel>

#include "qgis.h"
#include "qgswkbtypes.h"
#include "qgspostgresconn.h"

class QIcon;
Expand Down
2 changes: 1 addition & 1 deletion src/providers/spatialite/qgsspatialitetablemodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <QStandardItemModel>
class QIcon;
#include "qgis.h"
#include "qgswkbtypes.h"

/**
* A model that holds the tables of a database in a hierarchy where the
Expand Down

0 comments on commit 96a9a72

Please sign in to comment.