Skip to content
Permalink
Browse files

Visual indent part 1

  • Loading branch information
lbartoletti committed Oct 3, 2017
1 parent b962828 commit e335e481fd78b25cc240bc83554f8261611deb33
@@ -86,10 +86,13 @@ void QgsMapToolAddCircle::clean()
delete mTempRubberBand;
mTempRubberBand = nullptr;
}

mPoints.clear();

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

mCircle = QgsCircle();
}
@@ -54,7 +54,6 @@ class QgsMapToolAddCircle: public QgsMapToolCapture
QgsGeometryRubberBand *mTempRubberBand = nullptr;
//! Circle
QgsCircle mCircle;

};

#endif // QGSMAPTOOLADDCIRCLE_H
@@ -86,10 +86,13 @@ void QgsMapToolAddEllipse::clean()
delete mTempRubberBand;
mTempRubberBand = nullptr;
}

mPoints.clear();

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

mEllipse = QgsEllipse();
}
@@ -49,7 +49,6 @@ class QgsMapToolAddEllipse: public QgsMapToolCapture
QgsGeometryRubberBand *mTempRubberBand = nullptr;
//! Ellipse
QgsEllipse mEllipse;

};

#endif // QGSMAPTOOLADDELLIPSE_H
@@ -153,10 +153,13 @@ void QgsMapToolAddRectangle::clean()
delete mTempRubberBand;
mTempRubberBand = nullptr;
}

mPoints.clear();

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

mRectangle = QgsRectangle();
}
@@ -87,5 +87,4 @@ class QgsMapToolAddRectangle: public QgsMapToolCapture
int mSide = 1;
};


#endif // QGSMAPTOOLADDRECTANGLE_H
@@ -106,14 +106,18 @@ void QgsMapToolAddRegularPolygon::clean()
delete mTempRubberBand;
mTempRubberBand = nullptr;
}

mPoints.clear();

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

if ( mNumberSidesSpinBox )
{
deleteNumberSidesSpinBox();
}

mRegularPolygon = QgsRegularPolygon();
}
@@ -26,6 +26,7 @@ class QgsMapToolAddRegularPolygon: public QgsMapToolCapture
{
Q_OBJECT
void clean();

public:
QgsMapToolAddRegularPolygon( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode = CaptureLine );
~QgsMapToolAddRegularPolygon();
@@ -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.
You can’t perform that action at this time.