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.
|
* 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.
|
* @brief Constructor of UserInterfaceForm.
|
||||||
* @param myParent Setting widget which will contain this form as tab.
|
* @param myParent Setting widget which will contain this form as tab.
|
||||||
|
@ -119,8 +117,10 @@ UserInterfaceForm::UserInterfaceForm(SettingsWidget* myParent) :
|
||||||
bodyUI->emoticonSize->setValue(s.getEmojiFontPointSize());
|
bodyUI->emoticonSize->setValue(s.getEmojiFontPointSize());
|
||||||
|
|
||||||
QLocale ql;
|
QLocale ql;
|
||||||
|
QStringList timeFormats;
|
||||||
timeFormats << ql.timeFormat(QLocale::ShortFormat)
|
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();
|
timeFormats.removeDuplicates();
|
||||||
|
|
||||||
for (QString format : timeFormats)
|
for (QString format : timeFormats)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user