Ignore new values if file read only.
--HG-- branch : feature
This commit is contained in:
parent
bc7e998597
commit
397f5b65bc
|
@ -134,9 +134,12 @@ QString VMeasurements::Notes() const
|
|||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VMeasurements::SetNotes(const QString &text)
|
||||
{
|
||||
if (not ReadOnly())
|
||||
{
|
||||
setTagText(TagNotes, text);
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
QString VMeasurements::FamilyName() const
|
||||
|
@ -146,9 +149,12 @@ QString VMeasurements::FamilyName() const
|
|||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VMeasurements::SetFamilyName(const QString &text)
|
||||
{
|
||||
if (not ReadOnly())
|
||||
{
|
||||
setTagText(TagFamilyName, text);
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
QString VMeasurements::GivenName() const
|
||||
|
@ -158,9 +164,12 @@ QString VMeasurements::GivenName() const
|
|||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VMeasurements::SetGivenName(const QString &text)
|
||||
{
|
||||
if (not ReadOnly())
|
||||
{
|
||||
setTagText(TagGivenName, text);
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
QDate VMeasurements::BirthDate() const
|
||||
|
@ -171,9 +180,12 @@ QDate VMeasurements::BirthDate() const
|
|||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VMeasurements::SetBirthDate(const QDate &date)
|
||||
{
|
||||
if (not ReadOnly())
|
||||
{
|
||||
setTagText(TagBirthDate, date.toString("yyyy-MM-dd"));
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
SexType VMeasurements::Sex() const
|
||||
|
@ -183,9 +195,12 @@ SexType VMeasurements::Sex() const
|
|||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VMeasurements::SetSex(const SexType &sex)
|
||||
{
|
||||
if (not ReadOnly())
|
||||
{
|
||||
setTagText(TagSex, GenderToStr(sex));
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
QString VMeasurements::Email() const
|
||||
|
@ -195,9 +210,12 @@ QString VMeasurements::Email() const
|
|||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VMeasurements::SetEmail(const QString &text)
|
||||
{
|
||||
if (not ReadOnly())
|
||||
{
|
||||
setTagText(TagEmail, text);
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
bool VMeasurements::ReadOnly() const
|
||||
|
|
Loading…
Reference in New Issue
Block a user