mirror of
https://github.com/tnodir/fort
synced 2024-11-15 01:25:52 +00:00
UI: Format traffic dates per locale
This commit is contained in:
parent
b42e6bcf0b
commit
8cdeef7b57
@ -223,6 +223,7 @@ void TrafficPage::setupTabBar()
|
||||
void TrafficPage::setupTableTraf()
|
||||
{
|
||||
m_tableTraf = new TableView();
|
||||
m_tableTraf->setTextElideMode(Qt::ElideRight);
|
||||
m_tableTraf->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||
m_tableTraf->setSelectionBehavior(QAbstractItemView::SelectItems);
|
||||
|
||||
|
@ -84,7 +84,7 @@ QString DateUtil::formatMonth(qint64 unixTime)
|
||||
QString DateUtil::formatDateTime(qint64 unixTime, const QString &format)
|
||||
{
|
||||
const QDateTime dt = QDateTime::fromSecsSinceEpoch(unixTime);
|
||||
return QLocale::c().toString(dt, format);
|
||||
return QLocale().toString(dt, format);
|
||||
}
|
||||
|
||||
QString DateUtil::formatPeriod(const QString &from, const QString &to)
|
||||
|
Loading…
Reference in New Issue
Block a user