Small clearifikation about the usage of Units interface

This commit is contained in:
jriegel 2013-12-05 08:54:46 +01:00
parent 894529a223
commit b52de075e1

View File

@ -38,7 +38,9 @@ QString UnitsSchemaInternal::schemaTranslate(Base::Quantity quant,double &factor
{ {
double UnitValue = quant.getValue(); double UnitValue = quant.getValue();
Unit unit = quant.getUnit(); Unit unit = quant.getUnit();
// sending back the choosen values:
unitString = QString::fromAscii(quant.getUnit().getString().c_str());
factor = 1.0;
return QString::fromAscii("%1 %2").arg(UnitValue).arg(QString::fromAscii(unit.getString().c_str())); return QString::fromAscii("%1 %2").arg(UnitValue).arg(QString::fromAscii(unit.getString().c_str()));
} }
// //