[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user