Formula should be available for editing.
--HG-- branch : feature
This commit is contained in:
parent
5615817334
commit
3ee7bf574f
|
@ -840,27 +840,22 @@ void TMainWindow::ShowMData()
|
|||
{
|
||||
MFields(true);
|
||||
|
||||
if (mType == MeasurementsType::Individual)
|
||||
{
|
||||
ui->plainTextEditFormula->setReadOnly(false);
|
||||
}
|
||||
|
||||
if (meash->IsCustom())
|
||||
{
|
||||
ui->plainTextEditDescription->setReadOnly(false);
|
||||
ui->lineEditName->setReadOnly(false);
|
||||
ui->lineEditFullName->setReadOnly(false);
|
||||
|
||||
if (mType == MeasurementsType::Individual)
|
||||
{
|
||||
ui->plainTextEditFormula->setReadOnly(false);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->plainTextEditDescription->setReadOnly(true);
|
||||
ui->lineEditName->setReadOnly(true);
|
||||
ui->lineEditFullName->setReadOnly(true);
|
||||
|
||||
if (mType == MeasurementsType::Individual)
|
||||
{
|
||||
ui->plainTextEditFormula->setReadOnly(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user