From af3cae84e1078d7a79a56ef7ed249b0ac3064f65 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Sun, 14 Sep 2025 13:59:20 +0200 Subject: [PATCH] Sketcher: QMessageBox titles to Title Case (#23925) * Sketcher: QMessageBox titles to Title Case * Sketcher: QMessageBox titles to Title Case * Sketcher: QMessageBox titles to Title Case * Update Command.cpp * [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> --- src/Mod/Sketcher/Gui/Command.cpp | 2 +- src/Mod/Sketcher/Gui/CommandSketcherTools.cpp | 8 ++++---- src/Mod/Sketcher/Gui/TaskSketcherValidation.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Mod/Sketcher/Gui/Command.cpp b/src/Mod/Sketcher/Gui/Command.cpp index 7499b6bedd..07cadfae28 100644 --- a/src/Mod/Sketcher/Gui/Command.cpp +++ b/src/Mod/Sketcher/Gui/Command.cpp @@ -454,7 +454,7 @@ void CmdSketcherReorientSketch::activated(int iMsg) if (sketch->AttachmentSupport.getValue()) { int ret = QMessageBox::question( Gui::getMainWindow(), - qApp->translate("Sketcher_ReorientSketch", "Sketch has support"), + qApp->translate("Sketcher_ReorientSketch", "Sketch Has Support"), qApp->translate("Sketcher_ReorientSketch", "Sketch with a support face cannot be reoriented.\n" "Detach it from the support?"), diff --git a/src/Mod/Sketcher/Gui/CommandSketcherTools.cpp b/src/Mod/Sketcher/Gui/CommandSketcherTools.cpp index 3a46309bd2..9992b5f1ea 100644 --- a/src/Mod/Sketcher/Gui/CommandSketcherTools.cpp +++ b/src/Mod/Sketcher/Gui/CommandSketcherTools.cpp @@ -83,7 +83,7 @@ std::vector getListOfSelectedGeoIds(bool forceInternalSelection) // only one sketch with its subelements are allowed to be selected if (selection.size() != 1) { QMessageBox::warning(Gui::getMainWindow(), - QObject::tr("Wrong selection"), + QObject::tr("Wrong Selection"), QObject::tr("Select elements from a single sketch.")); return {}; } @@ -1438,7 +1438,7 @@ void SketcherCopy::activate(SketcherCopy::Op op) // Ask the user if they want to clone or to simple copy /* int ret = QMessageBox::question(Gui::getMainWindow(), QObject::tr("Dimensional/Geometric - constraints"), QObject::tr("Do you want to clone the object, i.e. substitute dimensional + Constraints"), QObject::tr("Do you want to clone the object, i.e. substitute dimensional constraints by geometric constraints?"), QMessageBox::Yes, QMessageBox::No, QMessageBox::Cancel); // use an equality constraint @@ -2087,7 +2087,7 @@ void CmdSketcherDeleteAllGeometry::activated(int iMsg) int ret = QMessageBox::question( Gui::getMainWindow(), - QObject::tr("Delete all geometry"), + QObject::tr("Delete All Geometry"), QObject::tr("Delete all geometry and constraints?"), QMessageBox::Yes, QMessageBox::Cancel); @@ -2151,7 +2151,7 @@ void CmdSketcherDeleteAllConstraints::activated(int iMsg) int ret = QMessageBox::question( Gui::getMainWindow(), - QObject::tr("Delete all constraints"), + QObject::tr("Delete All Constraints"), QObject::tr("Delete all the constraints in the sketch?"), QMessageBox::Yes, QMessageBox::Cancel); diff --git a/src/Mod/Sketcher/Gui/TaskSketcherValidation.cpp b/src/Mod/Sketcher/Gui/TaskSketcherValidation.cpp index 6d993164a8..aaaa31b404 100644 --- a/src/Mod/Sketcher/Gui/TaskSketcherValidation.cpp +++ b/src/Mod/Sketcher/Gui/TaskSketcherValidation.cpp @@ -388,7 +388,7 @@ void SketcherValidation::onDelConstrExtrClicked() int reply = QMessageBox::question( this, - tr("Delete constraints to external geom."), + tr("Delete Constraints to External Geometry"), tr("This will delete all constraints that deal with external geometry. This is " "useful to rescue a sketch with broken or changed links to external geometry. Delete " "the constraints?"),