Show formula value according to locale settings.

--HG--
branch : develop
This commit is contained in:
dismine 2014-05-27 19:00:35 +03:00
parent 6b4067ee1b
commit e4e993c335

View File

@ -336,7 +336,8 @@ void DialogTool::Eval(QLineEdit *edit, bool &flag, QTimer *timer, QLabel *label)
Calculator cal(data);
const qreal result = cal.EvalFormula(formula);
label->setText(QString().setNum(result));
QLocale loc = QLocale::system();
label->setText(loc.toString(result));
flag = true;
palette.setColor(labelEditFormula->foregroundRole(), QColor(76, 76, 76));
emit ToolTip("");