From 262c50ec3d21ae76b14e662e7a4dc9e34aeeb52e Mon Sep 17 00:00:00 2001 From: Nav Date: Sun, 18 Dec 2022 15:48:06 +0000 Subject: [PATCH] Changed format of memory capacity string in the TargetMemoryInspectionPane widget (to include commas in the capacity (i.e "2,048" instead of "2048")) --- .../TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp index c9699924..ca94d54a 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp @@ -2,6 +2,7 @@ #include #include +#include #include "src/Insight/UserInterfaces/InsightWindow/UiLoader.hpp" #include "src/Insight/InsightSignals.hpp" @@ -77,7 +78,7 @@ namespace Bloom::Widgets this->attachPaneButton = this->container->findChild("attach-pane-btn"); auto* memoryCapacityLabel = this->container->findChild("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("stale-data-label");