diff --git a/src/libs/vtools/visualization/vistoolspline.cpp b/src/libs/vtools/visualization/vistoolspline.cpp index 6f276e644..2b731e44d 100644 --- a/src/libs/vtools/visualization/vistoolspline.cpp +++ b/src/libs/vtools/visualization/vistoolspline.cpp @@ -38,9 +38,8 @@ const int EMPTY_ANGLE = -1; VisToolSpline::VisToolSpline(const VContainer *data, QGraphicsItem *parent) : VisPath(data, parent), object4Id(NULL_ID), - lineP1(nullptr), - lineP4(nullptr), - line(nullptr), + point1(nullptr), + point4(nullptr), angle1(EMPTY_ANGLE), angle2(EMPTY_ANGLE), kAsm1(1), @@ -53,9 +52,8 @@ VisToolSpline::VisToolSpline(const VContainer *data, QGraphicsItem *parent) p3(), controlPoints() { - lineP1 = InitPoint(supportColor, this); - lineP4 = InitPoint(supportColor, this); //-V656 - line = InitItem(mainColor, this); + point1 = InitPoint(supportColor, this); + point4 = InitPoint(supportColor, this); //-V656 auto *controlPoint1 = new VControlPointSpline(1, SplinePointPosition::FirstPoint, *data->GetPatternUnit(), this); controlPoint1->hide(); @@ -79,7 +77,7 @@ void VisToolSpline::RefreshGeometry() if (object1Id > NULL_ID) { const auto first = Visualization::data->GeometricObject(object1Id); - DrawPoint(lineP1, first->toQPointF(), supportColor); + DrawPoint(point1, first->toQPointF(), supportColor); if (mode == Mode::Creation) { @@ -110,7 +108,7 @@ void VisToolSpline::RefreshGeometry() else { const auto second = Visualization::data->GeometricObject(object4Id); - DrawPoint(lineP4, second->toQPointF(), supportColor); + DrawPoint(point4, second->toQPointF(), supportColor); if (mode == Mode::Creation) { diff --git a/src/libs/vtools/visualization/vistoolspline.h b/src/libs/vtools/visualization/vistoolspline.h index ebd193cc8..531619efc 100644 --- a/src/libs/vtools/visualization/vistoolspline.h +++ b/src/libs/vtools/visualization/vistoolspline.h @@ -62,9 +62,8 @@ public slots: protected: Q_DISABLE_COPY(VisToolSpline) quint32 object4Id; - QGraphicsEllipseItem *lineP1; - QGraphicsEllipseItem *lineP4; - QGraphicsLineItem *line; + QGraphicsEllipseItem *point1; + QGraphicsEllipseItem *point4; qreal angle1; qreal angle2; qreal kAsm1;