Code style.

This commit is contained in:
Roman Telezhynskyi 2022-05-06 15:11:40 +03:00
parent 92c9160bea
commit 1ba202e550
3 changed files with 10 additions and 11 deletions

View File

@ -43,7 +43,7 @@
VisLine::VisLine(const VContainer *data, QGraphicsItem *parent)
:Visualization(data), VScaledLine(parent)
{
this->setZValue(1);// Show on top real tool
this->setZValue(1);// Show on top of a real tool
InitPen();
}

View File

@ -45,8 +45,7 @@
//---------------------------------------------------------------------------------------------------------------------
VisToolHeight::VisToolHeight(const VContainer *data, QGraphicsItem *parent)
: VisLine(data, parent), lineP1Id(NULL_ID), lineP2Id(NULL_ID), point(nullptr), base_point(nullptr), lineP1(nullptr),
lineP2(nullptr), line(nullptr), line_intersection(nullptr)
: VisLine(data, parent)
{
base_point = InitPoint(supportColor, this);
lineP1 = InitPoint(supportColor, this);

View File

@ -56,14 +56,14 @@ public:
private:
Q_DISABLE_COPY(VisToolHeight)
//base point in parent class
quint32 lineP1Id;//first point of line
quint32 lineP2Id;//second point of line
VScaledEllipse *point;
VScaledEllipse *base_point;
VScaledEllipse *lineP1;
VScaledEllipse *lineP2;
VScaledLine *line;
VScaledLine *line_intersection;
quint32 lineP1Id{NULL_ID};//first point of line
quint32 lineP2Id{NULL_ID};//second point of line
VScaledEllipse *point{nullptr};
VScaledEllipse *base_point{nullptr};
VScaledEllipse *lineP1{nullptr};
VScaledEllipse *lineP2{nullptr};
VScaledLine *line{nullptr};
VScaledLine *line_intersection{nullptr};
void ShowIntersection(const QLineF &height_line, const QLineF &base_line);
};