From ed14e6b24f82484ecbedcd36eaa9d2ae699b81e7 Mon Sep 17 00:00:00 2001 From: Kacper Donat Date: Sat, 28 Jun 2025 20:02:46 +0200 Subject: [PATCH] Sketcher: Use generic tool hints table for DrawSketchHandlerBSpline --- .../Sketcher/Gui/DrawSketchHandlerBSpline.h | 57 ++++++++++--------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/src/Mod/Sketcher/Gui/DrawSketchHandlerBSpline.h b/src/Mod/Sketcher/Gui/DrawSketchHandlerBSpline.h index 6d90ae37fb..d7e045d4bd 100644 --- a/src/Mod/Sketcher/Gui/DrawSketchHandlerBSpline.h +++ b/src/Mod/Sketcher/Gui/DrawSketchHandlerBSpline.h @@ -414,34 +414,37 @@ private: return Gui::lookupHints( {constructionMethod(), state()}, - {// ControlPoints method - {.state = {ConstructionMethod::ControlPoints, SelectMode::SeekFirst}, - .hints = - { - {QObject::tr("%1 pick first control point"), {MouseLeft}}, - switchHint, - }}, - {.state = {ConstructionMethod::ControlPoints, SelectMode::SeekSecond}, - .hints = - { - {QObject::tr("%1 pick next control point"), {MouseLeft}}, - {QObject::tr("%1 finish B-spline"), {MouseRight}}, - switchHint, - }}, + { + // ControlPoints method + {.state = {ConstructionMethod::ControlPoints, SelectMode::SeekFirst}, + .hints = + { + {QObject::tr("%1 pick first control point"), {MouseLeft}}, + switchHint, + }}, + {.state = {ConstructionMethod::ControlPoints, SelectMode::SeekSecond}, + .hints = + { + {QObject::tr("%1 pick next control point"), {MouseLeft}}, + {QObject::tr("%1 finish B-spline"), {MouseRight}}, + switchHint, + }}, - // Knots method - {.state = {ConstructionMethod::Knots, SelectMode::SeekFirst}, - .hints = - { - {QObject::tr("%1 pick first knot"), {MouseLeft}}, - switchHint, - }}, - {.state = {ConstructionMethod::Knots, SelectMode::SeekSecond}, - .hints = { - {QObject::tr("%1 pick next knot"), {MouseLeft}}, - {QObject::tr("%1 finish B-spline"), {MouseRight}}, - switchHint, - }}}); + // Knots method + {.state = {ConstructionMethod::Knots, SelectMode::SeekFirst}, + .hints = + { + {QObject::tr("%1 pick first knot"), {MouseLeft}}, + switchHint, + }}, + {.state = {ConstructionMethod::Knots, SelectMode::SeekSecond}, + .hints = + { + {QObject::tr("%1 pick next knot"), {MouseLeft}}, + {QObject::tr("%1 finish B-spline"), {MouseRight}}, + switchHint, + }}, + }); } std::string getToolName() const override