Clean code.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-02-06 21:18:51 +02:00
parent 575068e181
commit 3f79c0f057

View File

@ -61,7 +61,6 @@ VControlPointSpline::VControlPointSpline(const qint32 &indexSpline, SplinePointP
freeLength(true) freeLength(true)
{ {
Init(); Init();
setVisible(false);
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
@ -89,7 +88,6 @@ VControlPointSpline::VControlPointSpline(const qint32 &indexSpline, SplinePointP
this->setFlag(QGraphicsItem::ItemSendsGeometryChanges, true); this->setFlag(QGraphicsItem::ItemSendsGeometryChanges, true);
this->setAcceptHoverEvents(true); this->setAcceptHoverEvents(true);
this->setPos(controlPoint); this->setPos(controlPoint);
setVisible(false);
// Do not draw control point in constructor. It creates artefacts if they enabled from start. // Do not draw control point in constructor. It creates artefacts if they enabled from start.
} }