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:
parent
d6f323cefc
commit
661388d731
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user