Dialogs don't return correct formulas.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2015-02-10 15:17:18 +02:00
parent 420f2e1da7
commit cfc2b187f6
2 changed files with 6 additions and 6 deletions

View File

@ -191,7 +191,7 @@ void DialogArc::SetF1(const QString &value)
*/ */
void DialogArc::SetRadius(const QString &value) void DialogArc::SetRadius(const QString &value)
{ {
radius = value; radius = qApp->FormulaToUser(value);
// increase height if needed. // increase height if needed.
if (radius.length() > 80) if (radius.length() > 80)
{ {
@ -443,7 +443,7 @@ quint32 DialogArc::GetCenter() const
*/ */
QString DialogArc::GetRadius() const QString DialogArc::GetRadius() const
{ {
return radius; return qApp->FormulaFromUser(radius);
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
@ -453,7 +453,7 @@ QString DialogArc::GetRadius() const
*/ */
QString DialogArc::GetF1() const QString DialogArc::GetF1() const
{ {
return f1; return qApp->FormulaFromUser(f1);
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
@ -463,5 +463,5 @@ QString DialogArc::GetF1() const
*/ */
QString DialogArc::GetF2() const QString DialogArc::GetF2() const
{ {
return f2; return qApp->FormulaFromUser(f2);
} }

View File

@ -271,7 +271,7 @@ void DialogPointOfContact::setCenter(const quint32 &value)
*/ */
void DialogPointOfContact::setRadius(const QString &value) void DialogPointOfContact::setRadius(const QString &value)
{ {
radius = value; radius = qApp->FormulaToUser(value);
// increase height if needed. // increase height if needed.
if (radius.length() > 80) if (radius.length() > 80)
{ {
@ -300,7 +300,7 @@ void DialogPointOfContact::SetPointName(const QString &value)
*/ */
QString DialogPointOfContact::getRadius() const QString DialogPointOfContact::getRadius() const
{ {
return radius; return qApp->FormulaFromUser(radius);
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------