diff --git a/src/ui/form/stat/pages/trafficpage.cpp b/src/ui/form/stat/pages/trafficpage.cpp index 8f1047d3..611a78bc 100644 --- a/src/ui/form/stat/pages/trafficpage.cpp +++ b/src/ui/form/stat/pages/trafficpage.cpp @@ -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); diff --git a/src/ui/util/dateutil.cpp b/src/ui/util/dateutil.cpp index 2c5cd538..41a19dcb 100644 --- a/src/ui/util/dateutil.cpp +++ b/src/ui/util/dateutil.cpp @@ -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)