Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(timeformat): Remove duplicate of timeformat
Browse files Browse the repository at this point in the history
  • Loading branch information
agilob authored and Diadlo committed Oct 7, 2016
1 parent d6f323c commit 661388d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/widget/form/settings/userinterfaceform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 661388d

Please sign in to comment.