Skip to content
Permalink
Browse files

remove useless includes

  • Loading branch information
3nids committed Oct 9, 2018
1 parent 7fb3a92 commit f27a5043bb652e17c7ddd68149d11b300440f3c2
@@ -10,6 +10,7 @@




class QgsMeshDatasetIndex
{
%Docstring
@@ -9,7 +9,6 @@




class QgsLayoutViewRubberBand : QObject
{
%Docstring
@@ -29,6 +29,7 @@ class QgsGroupBoxCollapseButton : QToolButton
protected:
virtual void mouseReleaseEvent( QMouseEvent *event );


};


@@ -11,7 +11,6 @@




class QgsMapOverviewCanvas : QWidget
{
%Docstring
@@ -33,7 +33,6 @@
#include "qgsfeatureaction.h"
#include "qgisapp.h"

#include <QMouseEvent>
#include <QSettings>

QgsMapToolAddFeature::QgsMapToolAddFeature( QgsMapCanvas *canvas, CaptureMode mode )
@@ -16,7 +16,6 @@
***************************************************************************/

#include <QDialog>
#include <QMouseEvent>

#include "qgsmaptoolannotation.h"
#include "qgsannotation.h"
@@ -34,7 +34,6 @@
#include "qgsfeatureaction.h"
#include "qgisapp.h"

#include <QMouseEvent>
#include <QSettings>

QgsMapToolDigitizeFeature::QgsMapToolDigitizeFeature( QgsMapCanvas *canvas, QgsMapLayer *layer, CaptureMode mode )
@@ -16,11 +16,14 @@
***************************************************************************/

#include "qgsmeshdataprovider.h"
#include "qgsrectangle.h"
#include "qgis.h"


QgsMeshDatasetIndex::QgsMeshDatasetIndex( int group, int dataset ):
mGroupIndex( group ), mDatasetIndex( dataset ) {}

QgsMeshDatasetIndex::QgsMeshDatasetIndex( int group, int dataset )
: mGroupIndex( group ), mDatasetIndex( dataset )
{}

int QgsMeshDatasetIndex::group() const
{
@@ -18,16 +18,17 @@
#ifndef QGSMESHDATAPROVIDER_H
#define QGSMESHDATAPROVIDER_H

#include "qgis_core.h"
#include "qgspoint.h"
#include "qgsrectangle.h"
#include "qgsdataprovider.h"

#include <QVector>
#include <QString>
#include <QMap>
#include <limits>

#include "qgis_core.h"
#include "qgspoint.h"
#include "qgsdataprovider.h"

class QgsRectangle;

/**
* \ingroup core
*
@@ -16,8 +16,6 @@
#ifndef QGSLAYOUTVIEWRUBBERBAND_H
#define QGSLAYOUTVIEWRUBBERBAND_H

#include <QMouseEvent>

#include "qgis_gui.h"
#include "qgis_sip.h"
#include <QBrush>
@@ -617,3 +617,10 @@ void QgsCollapsibleGroupBox::saveState() const
mSettings->setValue( key + QStringLiteral( "/collapsed" ), isCollapsed() );
}


void QgsGroupBoxCollapseButton::mouseReleaseEvent( QMouseEvent *event )
{
mAltDown = ( event->modifiers() & ( Qt::AltModifier | Qt::ControlModifier ) );
mShiftDown = ( event->modifiers() & Qt::ShiftModifier );
QToolButton::mouseReleaseEvent( event );
}
@@ -21,12 +21,12 @@
#include <QGroupBox>
#include <QPointer>
#include <QToolButton>
#include <QMouseEvent>

#include "qgis.h"
#include "qgssettings.h"
#include "qgis_gui.h"

class QMouseEvent;
class QToolButton;
class QScrollArea;

@@ -50,12 +50,7 @@ class GUI_EXPORT QgsGroupBoxCollapseButton : public QToolButton
void setShiftDown( bool shiftdown ) { mShiftDown = shiftdown; }

protected:
void mouseReleaseEvent( QMouseEvent *event ) override
{
mAltDown = ( event->modifiers() & ( Qt::AltModifier | Qt::ControlModifier ) );
mShiftDown = ( event->modifiers() & Qt::ShiftModifier );
QToolButton::mouseReleaseEvent( event );
}
void mouseReleaseEvent( QMouseEvent *event ) override;

private:
bool mAltDown = false;
@@ -25,7 +25,6 @@ email : sherman at mrcc.com
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QKeyEvent>
#include <QMouseEvent>
#include <QPainter>
#include <QPaintEvent>
#include <QPixmap>
@@ -19,13 +19,10 @@
#ifndef QGSMAPOVERVIEWCANVAS_H
#define QGSMAPOVERVIEWCANVAS_H


#include <QMouseEvent>
#include <QWheelEvent>
#include <QWidget>
#include <QStringList>
#include <QPixmap>

class QMouseEvent;
class QgsMapCanvas;
class QgsPanningWidget; // defined in .cpp
class QgsRectangle;
@@ -34,7 +34,6 @@
#include <QAction>
#include <QCursor>
#include <QPixmap>
#include <QMouseEvent>
#include <QStatusBar>


@@ -13,7 +13,6 @@
* *
***************************************************************************/

#include <QMouseEvent>

#include "qgsmaptoolemitpoint.h"
#include "qgsmapcanvas.h"
@@ -14,7 +14,6 @@
***************************************************************************/


#include <QMouseEvent>

#include "qgsmaptoolextent.h"
#include "qgsmapcanvas.h"
@@ -13,7 +13,6 @@
* *
***************************************************************************/

#include <QMouseEvent>

#include "qgsmaptoolidentifyfeature.h"
#include "qgsmapcanvas.h"
@@ -15,7 +15,6 @@

#include <QBitmap>
#include <QCursor>
#include <QMouseEvent>

#include "qgsmaptoolpan.h"
#include "qgsmapcanvas.h"
@@ -14,7 +14,6 @@
***************************************************************************/


#include <QMouseEvent>
#include <QRect>
#include <QColor>
#include <QCursor>
@@ -14,7 +14,6 @@
***************************************************************************/

#include <QSettings>
#include <QMouseEvent>
#include <QCursor>
#include <QPixmap>

@@ -16,7 +16,6 @@
#ifndef QGSGEOREFTOOLADDPOINT_H
#define QGSGEOREFTOOLADDPOINT_H

#include <QMouseEvent>

#include "qgsmaptoolemitpoint.h"

@@ -16,8 +16,6 @@
#ifndef QGSGEOREFTOOLDELETEPOINT_H
#define QGSGEOREFTOOLDELETEPOINT_H

#include <QMouseEvent>

#include "qgsmaptoolemitpoint.h"

class QgsPointXY;
@@ -16,7 +16,6 @@
#ifndef QGSGEOREFTOOLMOVEPOINT_H
#define QGSGEOREFTOOLMOVEPOINT_H

#include <QMouseEvent>
#include <QRubberBand>

#include "qgsmaptool.h"
@@ -13,7 +13,6 @@
#define MAPCOORDSDIALOG_H

#include <QDialog>
#include <QMouseEvent>

#include "qgsmaptoolemitpoint.h"
#include "qgssnapindicator.h"
@@ -26,6 +26,7 @@
#include "qgsproject.h"
#include "qgssettings.h"
#include "qgsvectorlayer.h"
#include "qgsmapmouseevent.h"
#include "testqgsmaptoolutils.h"


@@ -32,6 +32,7 @@
#include "qgsactionmanager.h"
#include "qgsactionmenu.h"
#include "qgsidentifyresultsdialog.h"
#include "qgsmapmouseevent.h"

#include <QTimer>

@@ -24,6 +24,7 @@

#include "testqgsmaptoolutils.h"
#include "qgsmaptoolreverseline.h"
#include "qgsmapmouseevent.h"


class TestQgsMapToolReverseLine : public QObject
@@ -17,12 +17,13 @@
#include <QString>
#include <QCoreApplication>
#include <QWidget>
#include <QMouseEvent>

#include <qgsmaptoolzoom.h>
#include <qgsapplication.h>
#include <qgsmapcanvas.h>
#include <qgslogger.h>
#include "qgsmaptoolzoom.h"
#include "qgsapplication.h"
#include "qgsmapcanvas.h"
#include "qgslogger.h"
#include "qgsmapmouseevent.h"


class TestQgsMapToolZoom : public QObject
{

0 comments on commit f27a504

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