Show formula value according to locale settings.
--HG-- branch : develop
This commit is contained in:
parent
6b4067ee1b
commit
e4e993c335
|
@ -336,7 +336,8 @@ void DialogTool::Eval(QLineEdit *edit, bool &flag, QTimer *timer, QLabel *label)
|
||||||
Calculator cal(data);
|
Calculator cal(data);
|
||||||
const qreal result = cal.EvalFormula(formula);
|
const qreal result = cal.EvalFormula(formula);
|
||||||
|
|
||||||
label->setText(QString().setNum(result));
|
QLocale loc = QLocale::system();
|
||||||
|
label->setText(loc.toString(result));
|
||||||
flag = true;
|
flag = true;
|
||||||
palette.setColor(labelEditFormula->foregroundRole(), QColor(76, 76, 76));
|
palette.setColor(labelEditFormula->foregroundRole(), QColor(76, 76, 76));
|
||||||
emit ToolTip("");
|
emit ToolTip("");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user