Just update label Calculated value if formulas equal.
--HG-- branch : feature
This commit is contained in:
parent
3ee7bf574f
commit
08c9f9a064
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user