initialize date-of-birth to current date minus 9 years

This commit is contained in:
Michael Mandl 2018-08-11 15:53:29 +02:00
parent 6010bf6b59
commit 8792263a66

View file

@ -4,7 +4,7 @@
MetaDataModel::MetaDataModel(QObject *parent) : QAbstractTableModel(parent) MetaDataModel::MetaDataModel(QObject *parent) : QAbstractTableModel(parent)
{ {
m_dateOfBirth.setDate(2010, 01, 01); m_dateOfBirth = QDate::currentDate().addYears(-9);
m_dateOfTest = QDate::currentDate(); m_dateOfTest = QDate::currentDate();
} }