mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Preferences DOB QDateEdit locale fix
This commit is contained in:
parent
69e16f11a6
commit
f1437da8cd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user