[Part] Part Measure Linear (tool) fix translation for "Selection xx" button.

* [PartDesign] Part Design Measure Linear (tool) fix translation for
"Selection xx" button.

* [Part] No need translate "Selection xx" string twice.
This commit is contained in:
Kuzemko Alexsandr
2022-05-05 11:47:04 +03:00
committed by Uwe
parent 573a184d62
commit d7bd80d44d

View File

@@ -1395,10 +1395,10 @@ PartGui::SteppedSelection::SteppedSelection(const uint& buttonCountIn, QWidget*
for (uint index = 0; index < buttonCountIn; ++index)
{
ButtonIconPairType tempPair;
QString text = QObject::tr("Selection ");
std::ostringstream stream;
stream << "Selection " << ((index < 10) ? "0" : "") << index + 1;
QString buttonText = QObject::tr(stream.str().c_str());
stream << text.toStdString() << ((index < 10) ? "0" : "") << index + 1;
QString buttonText = QString::fromStdString(stream.str());
QPushButton *button = new QPushButton(buttonText, this);
button->setCheckable(true);
button->setEnabled(false);