QFormLayout* aControlLay = new QFormLayout(this);
ModuleBase_Tools::adjustMargins(aControlLay);
- QString aLabelText = QString::fromStdString(theData->widgetLabel());
+ QString aLabelText = translate(theData->widgetLabel());
QString aLabelIcon = QString::fromStdString(theData->widgetIcon());
myLabel = new QLabel(aLabelText, this);
if (!aLabelIcon.isEmpty())
mySpinBox->setValue(aDefVal);
}
- QString aTTip = QString::fromStdString(theData->widgetTooltip());
+ QString aTTip = translate(theData->widgetTooltip());
mySpinBox->setToolTip(aTTip);
myLabel->setToolTip(aTTip);