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

fix(timeformat): Remove duplicate of timeformat

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

View File

@ -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) :
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)