fix user preferred

This commit is contained in:
jriegel 2013-12-10 23:32:25 +01:00
parent 69b4dd0fac
commit 9efcb3969a
4 changed files with 2 additions and 18 deletions

View File

@ -130,19 +130,6 @@ QString Quantity::getUserString(double &factor,QString &unitString)const
return Base::UnitsApi::schemaTranslate(*this,factor,unitString);
}
//double Quantity::getUserPrefered(QString &unitString)const
//{
// return Base::UnitsApi::schemaPrefUnit(_Unit,unitString).getValue() * _Value;
//}
//
//std::string Quantity::getUserString(void)const
//{
// std::stringstream sstream;
// sstream << _Value << _Unit.getString();
// //TODO: implementing
// return sstream.str();
//}
/// true if it has a number without a unit
bool Quantity::isDimensionless(void)const
{

View File

@ -69,9 +69,6 @@ public:
QString dummy2;
return getUserString(dummy1,dummy2);
}
//double getUserPrefered() const { QString dummy; return getUserPrefered(dummy); }
//double getUserPrefered(QString &unitString) const;
//std::string getUserString(void)const;
static Quantity parse(const QString &string);

View File

@ -34,7 +34,7 @@ Quantity(string) -- arbitrary mixture of numbers and chars defining a Quantity
</UserDocu>
</Documentation>
</Methode>
<Methode Name="getUserPrefered">
<Methode Name="getUserPreferred">
<Documentation>
<UserDocu>
returns a quantity with the translation factor and a string with the prevered unit

View File

@ -85,7 +85,7 @@ PyObject* QuantityPy::pow(PyObject * args)
return 0;
}
PyObject* QuantityPy::getUserPrefered(PyObject *args)
PyObject* QuantityPy::getUserPreferred(PyObject *args)
{
QString uus;
double factor;