Curved path should have three or more points.
--HG-- branch : develop
This commit is contained in:
parent
ffed353147
commit
22f52e4101
|
@ -235,10 +235,13 @@ void DialogSplinePath::UpdateList()
|
||||||
void DialogSplinePath::ShowDialog(bool click)
|
void DialogSplinePath::ShowDialog(bool click)
|
||||||
{
|
{
|
||||||
if (click == false)
|
if (click == false)
|
||||||
|
{
|
||||||
|
if (path.CountPoint() >= 3)
|
||||||
{
|
{
|
||||||
emit ToolTip("");
|
emit ToolTip("");
|
||||||
DialogAccepted();
|
DialogAccepted();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -82,7 +82,15 @@ void VisToolSplinePath::RefreshGeometry()
|
||||||
|
|
||||||
DrawPath(this, path.GetPath(PathDirection::Show), mainColor, Qt::SolidLine, Qt::RoundCap);
|
DrawPath(this, path.GetPath(PathDirection::Show), mainColor, Qt::SolidLine, Qt::RoundCap);
|
||||||
}
|
}
|
||||||
Visualization::toolTip = QString(tr("<b>Curve path</b>: <b>Enter</b> - finish creation"));
|
if (path.CountPoint() < 3)
|
||||||
|
{
|
||||||
|
Visualization::toolTip = QString(tr("<b>Curve path</b>: select three or more points"));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Visualization::toolTip = QString(tr("<b>Curve path</b>: select three or more points, "
|
||||||
|
"<b>Enter</b> - finish creation"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user