From a362731040293fbc480b279997a780d88f0fefeb Mon Sep 17 00:00:00 2001 From: Valentina Zhuravska Date: Wed, 13 Jul 2016 14:42:50 +0300 Subject: [PATCH] Added ToolTip for editing SplinePath. --HG-- branch : feature --- src/libs/vtools/visualization/path/vistoolsplinepath.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libs/vtools/visualization/path/vistoolsplinepath.cpp b/src/libs/vtools/visualization/path/vistoolsplinepath.cpp index 1842c8c1a..894305358 100644 --- a/src/libs/vtools/visualization/path/vistoolsplinepath.cpp +++ b/src/libs/vtools/visualization/path/vistoolsplinepath.cpp @@ -48,6 +48,7 @@ VisToolSplinePath::~VisToolSplinePath() { qDeleteAll(ctrlPoints); qDeleteAll(points); + emit ToolTip(""); } //--------------------------------------------------------------------------------------------------------------------- @@ -99,6 +100,11 @@ void VisToolSplinePath::RefreshGeometry() Visualization::toolTip = tr("Curved path: select three or more points, " "Enter - finish creation"); } + if (mode == Mode::Show) + { + Visualization::toolTip = tr("Use Shift for sticking angle!"); + emit ToolTip(Visualization::toolTip); + } } }