diff --git a/preferencesdialog.cpp b/preferencesdialog.cpp index 999dd381..7fcd5c11 100644 --- a/preferencesdialog.cpp +++ b/preferencesdialog.cpp @@ -101,6 +101,13 @@ PreferencesDialog::PreferencesDialog(QWidget *parent,Profile * _profile) : row++; } } + QLocale locale=QLocale::system(); + QString shortformat=locale.dateFormat(QLocale::ShortFormat); + if (!shortformat.toLower().contains("yyyy")) { + shortformat.replace("yy","yyyy"); + } + ui->dobEdit->setDisplayFormat(shortformat); + ui->profileTab->setTabOrder(ui->firstNameEdit,ui->lastNameEdit); ui->profileTab->setTabOrder(ui->lastNameEdit,ui->addressEdit); ui->profileTab->setTabOrder(ui->addressEdit,ui->genderMale);