add derived unit electric potential

This commit is contained in:
wmayer
2017-10-16 21:56:13 +02:00
parent eb5e791835
commit b1bfb62583
7 changed files with 19 additions and 2 deletions

View File

@@ -167,6 +167,10 @@ QString UnitsSchemaInternal::schemaTranslate(const Quantity &quant, double &fact
unitString = QString::fromLatin1("W");
factor = 1000000;
}
else if (unit == Unit::ElectricPotential) {
unitString = QString::fromLatin1("V");
factor = 1000000;
}
else if (unit == Unit::SpecificEnergy) {
unitString = QString::fromLatin1("m^2/s^2");
factor = 1000000;