Skip to content

Commit

Permalink
Visual indent part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti committed Oct 3, 2017
1 parent b962828 commit e335e48
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/app/qgsmaptooladdcircle.cpp
Expand Up @@ -86,10 +86,13 @@ void QgsMapToolAddCircle::clean()
delete mTempRubberBand;
mTempRubberBand = nullptr;
}

mPoints.clear();

if ( mParentTool )
{
mParentTool->deleteTempRubberBand();
}

mCircle = QgsCircle();
}
1 change: 0 additions & 1 deletion src/app/qgsmaptooladdcircle.h
Expand Up @@ -54,7 +54,6 @@ class QgsMapToolAddCircle: public QgsMapToolCapture
QgsGeometryRubberBand *mTempRubberBand = nullptr;
//! Circle
QgsCircle mCircle;

};

#endif // QGSMAPTOOLADDCIRCLE_H
3 changes: 3 additions & 0 deletions src/app/qgsmaptooladdellipse.cpp
Expand Up @@ -86,10 +86,13 @@ void QgsMapToolAddEllipse::clean()
delete mTempRubberBand;
mTempRubberBand = nullptr;
}

mPoints.clear();

if ( mParentTool )
{
mParentTool->deleteTempRubberBand();
}

mEllipse = QgsEllipse();
}
1 change: 0 additions & 1 deletion src/app/qgsmaptooladdellipse.h
Expand Up @@ -49,7 +49,6 @@ class QgsMapToolAddEllipse: public QgsMapToolCapture
QgsGeometryRubberBand *mTempRubberBand = nullptr;
//! Ellipse
QgsEllipse mEllipse;

};

#endif // QGSMAPTOOLADDELLIPSE_H
3 changes: 3 additions & 0 deletions src/app/qgsmaptooladdrectangle.cpp
Expand Up @@ -153,10 +153,13 @@ void QgsMapToolAddRectangle::clean()
delete mTempRubberBand;
mTempRubberBand = nullptr;
}

mPoints.clear();

if ( mParentTool )
{
mParentTool->deleteTempRubberBand();
}

mRectangle = QgsRectangle();
}
1 change: 0 additions & 1 deletion src/app/qgsmaptooladdrectangle.h
Expand Up @@ -87,5 +87,4 @@ class QgsMapToolAddRectangle: public QgsMapToolCapture
int mSide = 1;
};


#endif // QGSMAPTOOLADDRECTANGLE_H
4 changes: 4 additions & 0 deletions src/app/qgsmaptooladdregularpolygon.cpp
Expand Up @@ -106,14 +106,18 @@ void QgsMapToolAddRegularPolygon::clean()
delete mTempRubberBand;
mTempRubberBand = nullptr;
}

mPoints.clear();

if ( mParentTool )
{
mParentTool->deleteTempRubberBand();
}

if ( mNumberSidesSpinBox )
{
deleteNumberSidesSpinBox();
}

mRegularPolygon = QgsRegularPolygon();
}
2 changes: 1 addition & 1 deletion src/app/qgsmaptooladdregularpolygon.h
Expand Up @@ -26,6 +26,7 @@ class QgsMapToolAddRegularPolygon: public QgsMapToolCapture
{
Q_OBJECT
void clean();

public:
QgsMapToolAddRegularPolygon( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode = CaptureLine );
~QgsMapToolAddRegularPolygon();
Expand Down Expand Up @@ -58,7 +59,6 @@ class QgsMapToolAddRegularPolygon: public QgsMapToolCapture
QgsGeometryRubberBand *mTempRubberBand = nullptr;
//! Regular shape as a regular polygon
QgsRegularPolygon mRegularPolygon;

};

#endif // QGSMAPTOOLADDREGULARPOLYGON_H

0 comments on commit e335e48

Please sign in to comment.