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.
Expand Up @@ -10,6 +10,7 @@







class QgsAnnotation : QObject class QgsAnnotation : QObject
{ {
%Docstring %Docstring
Expand Down
Expand Up @@ -11,6 +11,7 @@







%ModuleHeaderCode %ModuleHeaderCode
#include "qgsmeshlayerinterpolator.h" #include "qgsmeshlayerinterpolator.h"
%End %End
Expand Down
Expand Up @@ -9,6 +9,7 @@







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


class QgsRenderContext;

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


#include <QPainter> #include <QPainter>


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


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


Expand Down
2 changes: 1 addition & 1 deletion src/core/mesh/qgsmeshlayer.h
Expand Up @@ -22,14 +22,14 @@


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


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


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


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


class QgsRenderContext;

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


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


class QgsRenderContext;

///@cond PRIVATE ///@cond PRIVATE


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


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


class QgsRenderContext;

///@cond PRIVATE ///@cond PRIVATE


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


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


#include <QDateTime>

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


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


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


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


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


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


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


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


#include <QMap> #include <QMap>


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


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


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


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


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


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


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


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


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


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


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


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


Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsnewmemorylayerdialog.h
Expand Up @@ -19,7 +19,7 @@


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


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


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


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


#include <QStandardItemModel> #include <QStandardItemModel>


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


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


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


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


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


/** /**
* A model that holds the tables of a database in a hierarchy where the * 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.