Popup calendar.
--HG-- branch : develop
This commit is contained in:
parent
c9ff24dd79
commit
6ec1826fbd
|
@ -637,6 +637,19 @@
|
||||||
<property name="displayFormat">
|
<property name="displayFormat">
|
||||||
<string>yyyy-MM-dd</string>
|
<string>yyyy-MM-dd</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="calendarPopup">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="currentSectionIndex">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="date">
|
||||||
|
<date>
|
||||||
|
<year>1800</year>
|
||||||
|
<month>1</month>
|
||||||
|
<day>1</day>
|
||||||
|
</date>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="0">
|
<item row="7" column="0">
|
||||||
|
|
|
@ -365,8 +365,7 @@ void VMeasurements::SetGivenName(const QString &text)
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
QDate VMeasurements::BirthDate() const
|
QDate VMeasurements::BirthDate() const
|
||||||
{
|
{
|
||||||
const QString date = UniqueTagText(TagBirthDate, "1990-02-15");
|
return QDate::fromString(UniqueTagText(TagBirthDate), "yyyy-MM-dd");
|
||||||
return QDate::fromString(date, "yyyy-MM-dd");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -699,11 +698,7 @@ void VMeasurements::CreateEmptyIndividualFile(Unit unit)
|
||||||
QDomElement personal = createElement(TagPersonal);
|
QDomElement personal = createElement(TagPersonal);
|
||||||
personal.appendChild(createElement(TagFamilyName));
|
personal.appendChild(createElement(TagFamilyName));
|
||||||
personal.appendChild(createElement(TagGivenName));
|
personal.appendChild(createElement(TagGivenName));
|
||||||
|
personal.appendChild(createElement(TagBirthDate));
|
||||||
QDomElement date = createElement(TagBirthDate);
|
|
||||||
const QDomText newDate = createTextNode(QDate(1990, 02, 15).toString("yyyy-MM-dd"));
|
|
||||||
date.appendChild(newDate);
|
|
||||||
personal.appendChild(date);
|
|
||||||
|
|
||||||
QDomElement gender = createElement(TagGender);
|
QDomElement gender = createElement(TagGender);
|
||||||
gender.appendChild(createTextNode(GenderToStr(GenderType::Unknown)));
|
gender.appendChild(createTextNode(GenderToStr(GenderType::Unknown)));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user