Fixed error in Tape app.

Editing values of standard table was incorrect.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-06-22 21:07:06 +03:00
parent decb74f99e
commit 94a2de1f75

View file

@ -1346,9 +1346,9 @@ void TMainWindow::ShowMData()
const qreal value = UnitConvertor(data->GetTableValue(meash->GetName(), mType), mUnit, pUnit);
ui->labelCalculatedValue->setText(qApp->LocaleToString(value) + " " +postfix);
ui->doubleSpinBoxBaseValue->setValue(static_cast<int>(meash->GetBase()));
ui->doubleSpinBoxInSizes->setValue(static_cast<int>(meash->GetKsize()));
ui->doubleSpinBoxInHeights->setValue(static_cast<int>(meash->GetKheight()));
ui->doubleSpinBoxBaseValue->setValue(meash->GetBase());
ui->doubleSpinBoxInSizes->setValue(meash->GetKsize());
ui->doubleSpinBoxInHeights->setValue(meash->GetKheight());
ui->labelCalculatedValue->blockSignals(false);
ui->doubleSpinBoxBaseValue->blockSignals(false);
@ -1610,6 +1610,8 @@ void TMainWindow::SaveMBaseValue(double value)
ui->tableWidget->blockSignals(true);
ui->tableWidget->selectRow(row);
ui->tableWidget->blockSignals(false);
ShowMData();
}
//---------------------------------------------------------------------------------------------------------------------
@ -1649,6 +1651,8 @@ void TMainWindow::SaveMSizeIncrease(double value)
ui->tableWidget->blockSignals(true);
ui->tableWidget->selectRow(row);
ui->tableWidget->blockSignals(false);
ShowMData();
}
//---------------------------------------------------------------------------------------------------------------------
@ -1688,6 +1692,8 @@ void TMainWindow::SaveMHeightIncrease(double value)
ui->tableWidget->blockSignals(true);
ui->tableWidget->selectRow(row);
ui->tableWidget->blockSignals(false);
ShowMData();
}
//---------------------------------------------------------------------------------------------------------------------