1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(timeformat): Make timestamp editable same as date format

This commit is contained in:
agilob 2016-01-02 17:15:29 +00:00 committed by Diadlo
parent 35e7da85d3
commit d6f323cefc
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -132,11 +132,12 @@ UserInterfaceForm::UserInterfaceForm(SettingsWidget* myParent) :
QStringList dateFormats;
dateFormats << QStringLiteral("yyyy-MM-dd") // ISO 8601
// format strings from system locale
<< ql.dateFormat(QLocale::LongFormat)
<< ql.dateFormat(QLocale::ShortFormat)
<< ql.dateFormat(QLocale::NarrowFormat);
<< ql.dateFormat(QLocale::NarrowFormat)
<< "dd-MM-yyyy" << "d-MM-yyyy" << "dddd dd-MM-yyyy" << "dddd d-MM";
dateFormats.removeDuplicates();
for (QString format : dateFormats)