Changed format of memory capacity string in the TargetMemoryInspectionPane widget (to include commas in the capacity (i.e "2,048" instead of "2048"))

This commit is contained in:
Nav
2022-12-18 15:48:06 +00:00
parent ad06cdcc75
commit 262c50ec3d

View File

@@ -2,6 +2,7 @@
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QToolButton> #include <QToolButton>
#include <QLocale>
#include "src/Insight/UserInterfaces/InsightWindow/UiLoader.hpp" #include "src/Insight/UserInterfaces/InsightWindow/UiLoader.hpp"
#include "src/Insight/InsightSignals.hpp" #include "src/Insight/InsightSignals.hpp"
@@ -77,7 +78,7 @@ namespace Bloom::Widgets
this->attachPaneButton = this->container->findChild<SvgToolButton*>("attach-pane-btn"); this->attachPaneButton = this->container->findChild<SvgToolButton*>("attach-pane-btn");
auto* memoryCapacityLabel = this->container->findChild<Label*>("memory-capacity-label"); auto* memoryCapacityLabel = this->container->findChild<Label*>("memory-capacity-label");
memoryCapacityLabel->setText(QString::number(this->targetMemoryDescriptor.size()) + " Bytes"); memoryCapacityLabel->setText(QLocale(QLocale::English).toString(this->targetMemoryDescriptor.size()) + " Bytes");
this->staleDataLabelContainer = this->container->findChild<QWidget*>("stale-data-label"); this->staleDataLabelContainer = this->container->findChild<QWidget*>("stale-data-label");