From a4b659fcbfe20d35ca250443e720130e8864a87c Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Thu, 11 Sep 2025 14:45:37 +0200 Subject: [PATCH] Spreadsheet: message box titles to Title Case (#23842) --- src/Mod/Spreadsheet/Gui/DlgBindSheet.cpp | 4 ++-- src/Mod/Spreadsheet/Gui/DlgSheetConf.cpp | 4 ++-- src/Mod/Spreadsheet/Gui/SheetTableView.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Mod/Spreadsheet/Gui/DlgBindSheet.cpp b/src/Mod/Spreadsheet/Gui/DlgBindSheet.cpp index a7f191367c..a58d7c4eb8 100644 --- a/src/Mod/Spreadsheet/Gui/DlgBindSheet.cpp +++ b/src/Mod/Spreadsheet/Gui/DlgBindSheet.cpp @@ -220,7 +220,7 @@ void DlgBindSheet::accept() App::Range toRange(toCellStart, toCellEnd, true); if (fromRange.size() != toRange.size()) { auto res = QMessageBox::warning(this, - tr("Bind cells"), + tr("Bind Cells"), tr("Source and target cell count mismatch. " "Partial binding may still work.\n\n" "Continue?"), @@ -297,7 +297,7 @@ void DlgBindSheet::onDiscard() } catch (Base::Exception& e) { e.reportException(); - QMessageBox::critical(this, tr("Unbind cells"), QString::fromUtf8(e.what())); + QMessageBox::critical(this, tr("Unbind Cells"), QString::fromUtf8(e.what())); Gui::Command::abortCommand(); } } diff --git a/src/Mod/Spreadsheet/Gui/DlgSheetConf.cpp b/src/Mod/Spreadsheet/Gui/DlgSheetConf.cpp index 7ba6e51a1f..c30b227a42 100644 --- a/src/Mod/Spreadsheet/Gui/DlgSheetConf.cpp +++ b/src/Mod/Spreadsheet/Gui/DlgSheetConf.cpp @@ -277,7 +277,7 @@ void DlgSheetConf::accept() } catch (Base::Exception& e) { e.reportException(); - QMessageBox::critical(this, tr("Setup configuration table"), QString::fromUtf8(e.what())); + QMessageBox::critical(this, tr("Setup Configuration Table"), QString::fromUtf8(e.what())); if (commandActive) { Gui::Command::abortCommand(); } @@ -335,7 +335,7 @@ void DlgSheetConf::onDiscard() } catch (Base::Exception& e) { e.reportException(); - QMessageBox::critical(this, tr("Unsetup configuration table"), QString::fromUtf8(e.what())); + QMessageBox::critical(this, tr("Unsetup Configuration Table"), QString::fromUtf8(e.what())); if (commandActive) { Gui::Command::abortCommand(); } diff --git a/src/Mod/Spreadsheet/Gui/SheetTableView.cpp b/src/Mod/Spreadsheet/Gui/SheetTableView.cpp index 706590369a..e8c8dd82af 100644 --- a/src/Mod/Spreadsheet/Gui/SheetTableView.cpp +++ b/src/Mod/Spreadsheet/Gui/SheetTableView.cpp @@ -813,7 +813,7 @@ void SheetTableView::pasteClipboard() catch (Base::Exception& e) { e.reportException(); QMessageBox::critical(Gui::getMainWindow(), - QObject::tr("Copy & Paste failed"), + QObject::tr("Copy & Paste Failed"), QString::fromLatin1(e.what())); return; }