Using Locale delimiter

This commit is contained in:
jriegel 2014-02-10 19:22:44 +01:00
parent b99cfa0fbb
commit 9af9283d19
3 changed files with 3 additions and 3 deletions

View File

@ -116,5 +116,5 @@ QString UnitsSchemaImperial1::schemaTranslate(Base::Quantity quant,double &facto
unitString = quant.getUnit().getString();
factor = 1.0;
}
return QString::fromLatin1("%1 %2").arg(quant.getValue() / factor).arg(unitString);
return QString::fromLatin1("%L1 %2").arg(quant.getValue() / factor).arg(unitString);
}

View File

@ -99,6 +99,6 @@ QString UnitsSchemaInternal::schemaTranslate(Base::Quantity quant,double &factor
unitString = quant.getUnit().getString();
factor = 1.0;
}
return QString::fromUtf8("%1 %2").arg(quant.getValue() / factor).arg(unitString);
return QString::fromUtf8("%L1 %2").arg(quant.getValue() / factor).arg(unitString);
}

View File

@ -93,5 +93,5 @@ QString UnitsSchemaMKS::schemaTranslate(Base::Quantity quant,double &factor,QStr
unitString = quant.getUnit().getString();
factor = 1.0;
}
return QString::fromUtf8("%1 %2").arg(quant.getValue() / factor).arg(unitString);
return QString::fromUtf8("%L1 %2").arg(quant.getValue() / factor).arg(unitString);
}