Formula should be available for editing.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2015-08-01 15:47:29 +03:00
parent 5615817334
commit 3ee7bf574f

View File

@ -840,27 +840,22 @@ void TMainWindow::ShowMData()
{ {
MFields(true); MFields(true);
if (mType == MeasurementsType::Individual)
{
ui->plainTextEditFormula->setReadOnly(false);
}
if (meash->IsCustom()) if (meash->IsCustom())
{ {
ui->plainTextEditDescription->setReadOnly(false); ui->plainTextEditDescription->setReadOnly(false);
ui->lineEditName->setReadOnly(false); ui->lineEditName->setReadOnly(false);
ui->lineEditFullName->setReadOnly(false); ui->lineEditFullName->setReadOnly(false);
if (mType == MeasurementsType::Individual)
{
ui->plainTextEditFormula->setReadOnly(false);
}
} }
else else
{ {
ui->plainTextEditDescription->setReadOnly(true); ui->plainTextEditDescription->setReadOnly(true);
ui->lineEditName->setReadOnly(true); ui->lineEditName->setReadOnly(true);
ui->lineEditFullName->setReadOnly(true); ui->lineEditFullName->setReadOnly(true);
if (mType == MeasurementsType::Individual)
{
ui->plainTextEditFormula->setReadOnly(true);
}
} }
} }
} }