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:
@@ -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");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user