Added ToolTip for editing SplinePath.

--HG--
branch : feature
This commit is contained in:
Valentina Zhuravska 2016-07-13 14:42:50 +03:00
parent 2cf2275365
commit a362731040

View file

@ -48,6 +48,7 @@ VisToolSplinePath::~VisToolSplinePath()
{ {
qDeleteAll(ctrlPoints); qDeleteAll(ctrlPoints);
qDeleteAll(points); qDeleteAll(points);
emit ToolTip("");
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
@ -99,6 +100,11 @@ void VisToolSplinePath::RefreshGeometry()
Visualization::toolTip = tr("<b>Curved path</b>: select three or more points, " Visualization::toolTip = tr("<b>Curved path</b>: select three or more points, "
"<b>Enter</b> - finish creation"); "<b>Enter</b> - finish creation");
} }
if (mode == Mode::Show)
{
Visualization::toolTip = tr("Use <b>Shift</b> for sticking angle!");
emit ToolTip(Visualization::toolTip);
}
} }
} }