Browse Source

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

pull/3774/head
agilob 10 years ago committed by Diadlo
parent
commit
d6f323cefc
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
  1. 5
      src/widget/form/settings/userinterfaceform.cpp

5
src/widget/form/settings/userinterfaceform.cpp

@ -132,11 +132,12 @@ UserInterfaceForm::UserInterfaceForm(SettingsWidget* myParent) : @@ -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)

Loading…
Cancel
Save