Ignore new values if file read only.
--HG-- branch : feature
This commit is contained in:
parent
bc7e998597
commit
397f5b65bc
|
@ -135,7 +135,10 @@ QString VMeasurements::Notes() const
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VMeasurements::SetNotes(const QString &text)
|
void VMeasurements::SetNotes(const QString &text)
|
||||||
{
|
{
|
||||||
|
if (not ReadOnly())
|
||||||
|
{
|
||||||
setTagText(TagNotes, text);
|
setTagText(TagNotes, text);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -147,7 +150,10 @@ QString VMeasurements::FamilyName() const
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VMeasurements::SetFamilyName(const QString &text)
|
void VMeasurements::SetFamilyName(const QString &text)
|
||||||
{
|
{
|
||||||
|
if (not ReadOnly())
|
||||||
|
{
|
||||||
setTagText(TagFamilyName, text);
|
setTagText(TagFamilyName, text);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -159,7 +165,10 @@ QString VMeasurements::GivenName() const
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VMeasurements::SetGivenName(const QString &text)
|
void VMeasurements::SetGivenName(const QString &text)
|
||||||
{
|
{
|
||||||
|
if (not ReadOnly())
|
||||||
|
{
|
||||||
setTagText(TagGivenName, text);
|
setTagText(TagGivenName, text);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -172,7 +181,10 @@ QDate VMeasurements::BirthDate() const
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VMeasurements::SetBirthDate(const QDate &date)
|
void VMeasurements::SetBirthDate(const QDate &date)
|
||||||
{
|
{
|
||||||
|
if (not ReadOnly())
|
||||||
|
{
|
||||||
setTagText(TagBirthDate, date.toString("yyyy-MM-dd"));
|
setTagText(TagBirthDate, date.toString("yyyy-MM-dd"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -184,7 +196,10 @@ SexType VMeasurements::Sex() const
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VMeasurements::SetSex(const SexType &sex)
|
void VMeasurements::SetSex(const SexType &sex)
|
||||||
{
|
{
|
||||||
|
if (not ReadOnly())
|
||||||
|
{
|
||||||
setTagText(TagSex, GenderToStr(sex));
|
setTagText(TagSex, GenderToStr(sex));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -196,7 +211,10 @@ QString VMeasurements::Email() const
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VMeasurements::SetEmail(const QString &text)
|
void VMeasurements::SetEmail(const QString &text)
|
||||||
{
|
{
|
||||||
|
if (not ReadOnly())
|
||||||
|
{
|
||||||
setTagText(TagEmail, text);
|
setTagText(TagEmail, text);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user