integrate Quantities into PropertyView and activate preferences again

This commit is contained in:
jriegel
2013-09-25 21:46:08 +02:00
parent 5df33e8227
commit c8cc4a179a
27 changed files with 303 additions and 63 deletions

View File

@@ -27,6 +27,7 @@
#include <cmath>
#include "Quantity.h"
#include "Exception.h"
#include "UnitsApi.h"
// suppress annoying warnings from generated source files
#ifdef _MSC_VER
@@ -107,6 +108,11 @@ Quantity& Quantity::operator = (const Quantity &New)
return *this;
}
double Quantity::getUserPrefered(QString &unitString)const
{
return Base::UnitsApi::schemaPrefUnit(_Unit,unitString).getValue() * _Value;
}
// === Parser & Scanner stuff ===============================================
// include the Scanner and the Parser for the Quantitys