diff --git a/src/Mod/Part/Gui/TaskDimension.cpp b/src/Mod/Part/Gui/TaskDimension.cpp index 596d9d2332..c0fc309426 100644 --- a/src/Mod/Part/Gui/TaskDimension.cpp +++ b/src/Mod/Part/Gui/TaskDimension.cpp @@ -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);