Show direction when show a visualization.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-05-25 11:48:32 +03:00
parent 6b8e354661
commit 35b1a2fb9a

View file

@ -259,14 +259,14 @@ int VisToolRotation::AddCurve(qreal angle, const QPointF &origin, quint32 id, in
++i;
QGraphicsPathItem *path = GetCurve(i, supportColor2);
DrawPath(path, curve->GetPath(PathDirection::Hide), supportColor2, Qt::SolidLine, Qt::RoundCap);
DrawPath(path, curve->GetPath(PathDirection::Show), supportColor2, Qt::SolidLine, Qt::RoundCap);
++i;
path = GetCurve(i, supportColor);
if (object1Id != NULL_ID)
{
const Item rotated = curve->Rotate(origin, angle);
DrawPath(path, rotated.GetPath(PathDirection::Hide), supportColor, Qt::SolidLine, Qt::RoundCap);
DrawPath(path, rotated.GetPath(PathDirection::Show), supportColor, Qt::SolidLine, Qt::RoundCap);
}
return i;