Improve Cut arc tool tooltip.

Show ids of subarcs.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-05-29 13:29:57 +03:00
parent 5c55778d66
commit 2538fc24b5

View File

@ -262,6 +262,8 @@ QString VToolCutArc::MakeToolTip() const
VArc ar1; VArc ar1;
VArc ar2; VArc ar2;
arc->CutArc(qApp->toPixel(length), ar1, ar2); arc->CutArc(qApp->toPixel(length), ar1, ar2);
ar1.setId(m_id + 1);
ar2.setId(m_id + 2);
auto ArcToolTip = [arcStr, lengthStr, startAngleStr, endAngleStr, radiusStr](QString toolTip, const VArc &arc, auto ArcToolTip = [arcStr, lengthStr, startAngleStr, endAngleStr, radiusStr](QString toolTip, const VArc &arc,
const QString &arcNumber) const QString &arcNumber)