From ca020c4c7f432fdb9d90b029bf17fcdb2e140617 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 18 Mar 2016 12:28:28 +0200 Subject: [PATCH] Improved visualization for tool Cubic Bezier. --HG-- branch : feature --- src/libs/vtools/visualization/vistoolcubicbezier.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/vtools/visualization/vistoolcubicbezier.cpp b/src/libs/vtools/visualization/vistoolcubicbezier.cpp index c6d3af4ca..7d534657a 100644 --- a/src/libs/vtools/visualization/vistoolcubicbezier.cpp +++ b/src/libs/vtools/visualization/vistoolcubicbezier.cpp @@ -62,12 +62,11 @@ void VisToolCubicBezier::RefreshGeometry() if (object1Id > NULL_ID) { const auto first = Visualization::data->GeometricObject(object1Id); - DrawPoint(point1, first->toQPointF(), supportColor); + DrawPoint(point1, first->toQPointF(), Qt::DashLine); if (object2Id <= NULL_ID) { - const QLineF line = QLineF(first->toQPointF(), Visualization::scenePos); - DrawLine(helpLine1, line, mainColor, Qt::DashLine); + DrawLine(helpLine1, QLineF(first->toQPointF(), Visualization::scenePos), mainColor, Qt::DashLine); } else { @@ -90,6 +89,7 @@ void VisToolCubicBezier::RefreshGeometry() { VCubicBezier spline(*first, *second, *third, VPointF(Visualization::scenePos)); DrawPath(this, spline.GetPath(PathDirection::Hide), mainColor, Qt::SolidLine, Qt::RoundCap); + DrawLine(helpLine2, QLineF(third->toQPointF(), Visualization::scenePos), mainColor, Qt::DashLine); } else {