Just update label Calculated value if formulas equal.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2015-08-01 15:55:52 +03:00
parent 3ee7bf574f
commit 08c9f9a064

View File

@ -942,6 +942,9 @@ void TMainWindow::SaveMValue()
QTableWidgetItem *formulaField = ui->tableWidget->item(row, 2); QTableWidgetItem *formulaField = ui->tableWidget->item(row, 2);
if (formulaField->text() == text) if (formulaField->text() == text)
{ {
QTableWidgetItem *result = ui->tableWidget->item(row, 1);
const QString postfix = VDomDocument::UnitsToStr(mUnit);//Show unit in dialog lable (cm, mm or inch)
ui->labelCalculatedValue->setText(result->text() + " " +postfix);
return; return;
} }