From 78b579c76f3fba859acd194beeab59371f25e4dd Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Fri, 5 Jan 2024 16:31:43 +0300 Subject: [PATCH] UI: Speed formatting: Revert up/down arrows --- src/ui/conf/appgroup.cpp | 4 ++-- src/ui/form/graph/graphwindow.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/conf/appgroup.cpp b/src/ui/conf/appgroup.cpp index 98e8ced1..b1b62a7b 100644 --- a/src/ui/conf/appgroup.cpp +++ b/src/ui/conf/appgroup.cpp @@ -170,12 +170,12 @@ QString AppGroup::menuLabel() const QString text = name(); if (enabledSpeedLimitIn() != 0) { - text += QLatin1Char(' ') + QChar(0x02C5) // ˅ + text += QLatin1Char(' ') + QChar(0x2193) // ↓ + NetUtil::formatSpeed(speedLimitIn() * 1024); } if (enabledSpeedLimitOut() != 0) { - text += QLatin1Char(' ') + QChar(0x02C4) // ˄ + text += QLatin1Char(' ') + QChar(0x2191) // ↑ + NetUtil::formatSpeed(speedLimitOut() * 1024); } diff --git a/src/ui/form/graph/graphwindow.cpp b/src/ui/form/graph/graphwindow.cpp index 658029e2..0636d472 100644 --- a/src/ui/form/graph/graphwindow.cpp +++ b/src/ui/form/graph/graphwindow.cpp @@ -421,8 +421,8 @@ void GraphWindow::updateWindowTitleSpeed() const auto outBits = m_graphOut->data()->isEmpty() ? 0 : (m_graphOut->data()->constEnd() - 1)->mainValue(); - setWindowTitle(QChar(0x02C5) // ˅ - + NetUtil::formatSpeed(quint32(inBits)) + ' ' + QChar(0x02C4) // ˄ + setWindowTitle(QChar(0x2193) // ↓ + + NetUtil::formatSpeed(quint32(inBits)) + ' ' + QChar(0x2191) // ↑ + NetUtil::formatSpeed(quint32(outBits))); }