Browse Source

fix(timeformat): Remove duplicate of timeformat

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

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

@ -50,8 +50,6 @@ @@ -50,8 +50,6 @@
* It also contains the smiley configuration.
*/
static QStringList timeFormats = {"hh:mm AP", "hh:mm", "hh:mm:ss AP", "hh:mm:ss"};
/**
* @brief Constructor of UserInterfaceForm.
* @param myParent Setting widget which will contain this form as tab.
@ -119,8 +117,10 @@ UserInterfaceForm::UserInterfaceForm(SettingsWidget* myParent) : @@ -119,8 +117,10 @@ UserInterfaceForm::UserInterfaceForm(SettingsWidget* myParent) :
bodyUI->emoticonSize->setValue(s.getEmojiFontPointSize());
QLocale ql;
QStringList timeFormats;
timeFormats << ql.timeFormat(QLocale::ShortFormat)
<< ql.timeFormat(QLocale::LongFormat);
<< ql.timeFormat(QLocale::LongFormat)
<< "hh:mm AP" << "hh:mm:ss AP" << "hh:mm:ss";
timeFormats.removeDuplicates();
for (QString format : timeFormats)

Loading…
Cancel
Save