Sketcher: Change "By control points" and "By knots" texts (#23943)

* Sketcher: Change "By control points" and "By knots" texts

Elsewhere in the Sketcher GUI texts, "By" has been replaced by "From". For example "Arc From Center". It makes sense to also do that for the B-spline modes "By control points" and "By knots".

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Roy-043
2025-09-15 19:12:58 +02:00
committed by GitHub
parent ccc1237e90
commit 0544691119

View File

@@ -907,8 +907,9 @@ void DSHBSplineController::configureToolWidget()
toolWidget->setNoticeText(
QApplication::translate("TaskSketcherTool_c1_bspline", "Press F to undo last point."));
QStringList names = {QApplication::translate("Sketcher_CreateBSpline", "By control points"),
QApplication::translate("Sketcher_CreateBSpline", "By knots")};
QStringList names = {
QApplication::translate("Sketcher_CreateBSpline", "From control points"),
QApplication::translate("Sketcher_CreateBSpline", "From knots")};
toolWidget->setComboboxElements(WCombobox::FirstCombo, names);
toolWidget->setCheckboxLabel(