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) VisLine::VisLine(const VContainer *data, QGraphicsItem *parent)
:Visualization(data), VScaledLine(parent) :Visualization(data), VScaledLine(parent)
{ {
this->setZValue(1);// Show on top real tool this->setZValue(1);// Show on top of a real tool
InitPen(); InitPen();
} }

View File

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

View File

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