Disable GUI if user made file read only.
--HG-- branch : feature
This commit is contained in:
parent
ac187de0c9
commit
bc7e998597
|
@ -324,6 +324,20 @@ void TMainWindow::ReadOnly(bool ro)
|
||||||
ui->actionReadOnly->setIcon(QIcon("://tapeicon/24x24/padlock_opened.png"));
|
ui->actionReadOnly->setIcon(QIcon("://tapeicon/24x24/padlock_opened.png"));
|
||||||
}
|
}
|
||||||
m->SetReadOnly(ro);
|
m->SetReadOnly(ro);
|
||||||
|
MeasurementsWasSaved(false);
|
||||||
|
|
||||||
|
ui->plainTextEditNotes->setDisabled(ro);
|
||||||
|
ui->actionAddCustom->setDisabled(ro);
|
||||||
|
ui->actionAddKnown->setDisabled(ro);
|
||||||
|
|
||||||
|
if (mType == MeasurementsType::Individual)
|
||||||
|
{
|
||||||
|
ui->lineEditGivenName->setDisabled(ro);
|
||||||
|
ui->lineEditFamilyName->setDisabled(ro);
|
||||||
|
ui->dateEditBirthDate->setDisabled(ro);
|
||||||
|
ui->comboBoxSex->setDisabled(ro);
|
||||||
|
ui->lineEditEmail->setDisabled(ro);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user