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>
This commit is contained in:
Roy-043
2025-09-14 13:59:20 +02:00
committed by GitHub
parent 4dbdd1031d
commit f7f3c18e52
3 changed files with 6 additions and 6 deletions

View File

@@ -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?"),

View File

@@ -83,7 +83,7 @@ std::vector<int> 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);

View File

@@ -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?"),