From c1d03b24a99aea5141434ffc33f26fb966a00936 Mon Sep 17 00:00:00 2001 From: hasecilu Date: Thu, 13 Mar 2025 14:08:10 -0600 Subject: [PATCH] Mesh: change context for strings on task panel --- src/Mod/Mesh/Gui/Workbench.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Mod/Mesh/Gui/Workbench.cpp b/src/Mod/Mesh/Gui/Workbench.cpp index cab5a9c0c8..12b184db43 100644 --- a/src/Mod/Mesh/Gui/Workbench.cpp +++ b/src/Mod/Mesh/Gui/Workbench.cpp @@ -23,6 +23,7 @@ #include "PreCompiled.h" #ifndef _PreComp_ #include +#include #include #endif @@ -65,27 +66,27 @@ public: { // NOLINTBEGIN labelPoints = new QLabel(); - labelPoints->setText(tr("Number of points:")); + labelPoints->setText(QObject::tr("Number of points:")); labelFacets = new QLabel(); - labelFacets->setText(tr("Number of facets:")); + labelFacets->setText(QObject::tr("Number of facets:")); numPoints = new QLabel(); numFacets = new QLabel(); labelMin = new QLabel(); - labelMin->setText(tr("Minimum bound:")); + labelMin->setText(QObject::tr("Minimum bound:")); labelMax = new QLabel(); - labelMax->setText(tr("Maximum bound:")); + labelMax->setText(QObject::tr("Maximum bound:")); numMin = new QLabel(); numMax = new QLabel(); // NOLINTEND QGroupBox* box = new QGroupBox(); - box->setTitle(tr("Mesh info box")); - box->setWindowTitle(tr("Mesh info")); + box->setTitle(QObject::tr("Mesh info box")); + box->setWindowTitle(QObject::tr("Mesh info")); // box->setAutoFillBackground(true); QGridLayout* grid = new QGridLayout(box); grid->addWidget(labelPoints, 0, 0);