Skip to content

Commit dec09cf

Browse files
committedOct 3, 2017
Visual indent part 2
1 parent e335e48 commit dec09cf

6 files changed

+2
-11
lines changed
 

‎src/app/qgsmaptoolcircle2points.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ QgsMapToolCircle2Points::QgsMapToolCircle2Points( QgsMapToolCapture *parentTool,
2424
QgsMapCanvas *canvas, CaptureMode mode )
2525
: QgsMapToolAddCircle( parentTool, canvas, mode )
2626
{
27-
2827
}
2928

3029
void QgsMapToolCircle2Points::cadCanvasReleaseEvent( QgsMapMouseEvent *e )

‎src/app/qgsmaptoolcircle2tangentspoint.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,9 @@ void QgsMapToolCircle2TangentsPoint::cadCanvasReleaseEvent( QgsMapMouseEvent *e
7070
QgsMessageBar::CRITICAL, QgisApp::instance()->messageTimeout() );
7171
deactivate();
7272
}
73-
createRadiusSpinBox();
7473

74+
createRadiusSpinBox();
7575
}
76-
7776
}
7877
else if ( e->button() == Qt::RightButton )
7978
{
@@ -222,8 +221,6 @@ void QgsMapToolCircle2TangentsPoint::getPossibleCenter( )
222221
mCenters.append( p4 );
223222

224223
}
225-
226-
227224
}
228225

229226
void QgsMapToolCircle2TangentsPoint::createRadiusSpinBox()
@@ -270,6 +267,5 @@ void QgsMapToolCircle2TangentsPoint::radiusSpinBoxChanged( int radius )
270267
tempRB->show();
271268
mRubberBands.append( tempRB.release() );
272269
}
273-
274270
}
275271
}

‎src/app/qgsmaptoolcircle2tangentspoint.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class QgsMapToolCircle2TangentsPoint: public QgsMapToolAddCircle
3636

3737
public slots:
3838
void radiusSpinBoxChanged( int radius );
39+
3940
private:
4041
//! Return the point where segments are intersected. Method from QgsGeometryUtils doesn't work for special cases used by this tool.
4142
QgsPointXY intersect( QgsPointXY seg1_pt1, QgsPointXY seg1_pt2, QgsPointXY seg2_pt1, QgsPointXY seg2_pt2 );
@@ -50,7 +51,6 @@ class QgsMapToolCircle2TangentsPoint: public QgsMapToolAddCircle
5051

5152
QSpinBox *mRadiusSpinBox = nullptr;
5253

53-
5454
int mRadius = 0;
5555
QVector<QgsPointXY> mCenters;
5656
QVector<QgsGeometryRubberBand *> mRubberBands;

‎src/app/qgsmaptoolcircle3points.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ void QgsMapToolCircle3Points::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
3535
{
3636
if ( mPoints.size() < 2 )
3737
mPoints.append( mapPoint );
38-
3938
if ( !mPoints.isEmpty() && !mTempRubberBand )
4039
{
4140
mTempRubberBand = createGeometryRubberBand( ( mode() == CapturePolygon ) ? QgsWkbTypes::PolygonGeometry : QgsWkbTypes::LineGeometry, true );

‎src/app/qgsmaptoolcircle3tangents.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ QgsMapToolCircle3Tangents::QgsMapToolCircle3Tangents( QgsMapToolCapture *parentT
3232

3333
void QgsMapToolCircle3Tangents::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
3434
{
35-
3635
QgsPoint mapPoint( e->mapPoint() );
3736
EdgesOnlyFilter filter;
3837
QgsPointLocator::Match match = mCanvas->snappingUtils()->snapToMap( mapPoint, &filter );
@@ -66,7 +65,6 @@ void QgsMapToolCircle3Tangents::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
6665
{
6766
if ( match.isValid() && ( mPoints.size() == 4 ) )
6867
{
69-
7068
match.edgePoints( p1, p2 );
7169
mPoints.append( QgsPoint( p1 ) );
7270
mPoints.append( QgsPoint( p2 ) );

‎src/app/qgsmaptoolcircle3tangents.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class QgsMapToolCircle3Tangents: public QgsMapToolAddCircle
2828
QgsMapToolCircle3Tangents( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode = CaptureLine );
2929

3030
void cadCanvasReleaseEvent( QgsMapMouseEvent *e ) override;
31-
3231
};
3332

3433
#endif // QGSMAPTOOLCIRCLE3TANGENTS_H

0 commit comments

Comments
 (0)
Please sign in to comment.