From: vsv Date: Wed, 7 Sep 2016 14:51:00 +0000 (+0300) Subject: Issue #1735: Names in deflection dialog box. X-Git-Tag: V_2.5.0~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ea32c5f140b88533497d4b1222f08ea8e04a040c;p=modules%2Fshaper.git Issue #1735: Names in deflection dialog box. --- diff --git a/src/SamplePanelPlugin/SamplePanelPlugin_ModelWidget.cpp b/src/SamplePanelPlugin/SamplePanelPlugin_ModelWidget.cpp index 4f6530e20..ed4625ecc 100755 --- a/src/SamplePanelPlugin/SamplePanelPlugin_ModelWidget.cpp +++ b/src/SamplePanelPlugin/SamplePanelPlugin_ModelWidget.cpp @@ -29,7 +29,7 @@ SamplePanelPlugin_ModelWidget::SamplePanelPlugin_ModelWidget(QWidget* theParent, aLay->addWidget(myMainWidget); QGridLayout* aLayout = new QGridLayout(myMainWidget); - aLayout->addWidget(new QLabel("Values:"), 0, 0); + aLayout->addWidget(new QLabel(tr("Values:")), 0, 0); myComboBox = new QComboBox(myMainWidget); myComboBox->addItem("Value_1"); diff --git a/src/SamplePanelPlugin/SamplePanelPlugin_Panel.cpp b/src/SamplePanelPlugin/SamplePanelPlugin_Panel.cpp index 36225355f..d25add5b9 100755 --- a/src/SamplePanelPlugin/SamplePanelPlugin_Panel.cpp +++ b/src/SamplePanelPlugin/SamplePanelPlugin_Panel.cpp @@ -20,7 +20,7 @@ SamplePanelPlugin_Panel::SamplePanelPlugin_Panel(QWidget* theParent) : QWidget(theParent), myDefaultValue(0) { QGridLayout* aLayout = new QGridLayout(this); - aLayout->addWidget(new QLabel("Values:"), 0, 0); + aLayout->addWidget(new QLabel(tr("Values:")), 0, 0); myComboBox = new QComboBox(this); myComboBox->addItem("Value_1"); diff --git a/src/XGUI/XGUI_ColorDialog.cpp b/src/XGUI/XGUI_ColorDialog.cpp index 7fa7cc004..16cb5167b 100644 --- a/src/XGUI/XGUI_ColorDialog.cpp +++ b/src/XGUI/XGUI_ColorDialog.cpp @@ -19,7 +19,7 @@ XGUI_ColorDialog::XGUI_ColorDialog(QWidget* theParent) : QDialog(theParent) { - setWindowTitle("Color"); + setWindowTitle(tr("Color")); QGridLayout* aLay = new QGridLayout(this); QRadioButton* aRandomChoiceBtn = new QRadioButton(this); @@ -37,7 +37,7 @@ XGUI_ColorDialog::XGUI_ColorDialog(QWidget* theParent) myColorButton->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); aLay->addWidget(myColorButton, 0, 1); - QLabel* aRandomLabel = new QLabel("Random", this); + QLabel* aRandomLabel = new QLabel(tr("Random"), this); aLay->addWidget(aRandomLabel, 1, 1); QDialogButtonBox* aButtons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, diff --git a/src/XGUI/XGUI_DeflectionDialog.cpp b/src/XGUI/XGUI_DeflectionDialog.cpp index 4ce9dcfd6..60ebe7a92 100755 --- a/src/XGUI/XGUI_DeflectionDialog.cpp +++ b/src/XGUI/XGUI_DeflectionDialog.cpp @@ -19,14 +19,14 @@ XGUI_DeflectionDialog::XGUI_DeflectionDialog(QWidget* theParent) : QDialog(theParent) { - setWindowTitle("Deflection"); + setWindowTitle(tr("Deflection")); QGridLayout* aLay = new QGridLayout(this); myDeflection = new ModuleBase_DoubleSpinBox(this); myDeflection->setDecimals(12); myDeflection->setRange(0, 1); myDeflection->setSingleStep(0.001); - aLay->addWidget(new QLabel("Deviation", this), 0, 0); + aLay->addWidget(new QLabel(tr("Deflection value"), this), 0, 0); aLay->addWidget(myDeflection, 0, 1); QDialogButtonBox* aButtons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel,