diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.cpp index ba8011ff..522255c3 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.cpp @@ -224,12 +224,16 @@ namespace Bloom::Widgets this->bottomBarLayout = this->bottomBar->findChild(); this->memoryCapacityLabel = this->bottomBar->findChild("memory-capacity-label"); + this->memoryTypeLabel = this->bottomBar->findChild("memory-type-label"); this->diffCountLabel = this->bottomBar->findChild("diff-count-label"); this->memoryCapacityLabel->setText(QLocale(QLocale::English).toString(this->hexViewerDataA->size()) + " bytes"); + this->memoryTypeLabel->setText(EnumToStringMappings::targetMemoryTypes.at( + this->memoryDescriptor.type).toUpper() + ); this->taskProgressIndicator = new TaskProgressIndicator(this); - this->bottomBarLayout->insertWidget(5, this->taskProgressIndicator); + this->bottomBarLayout->insertWidget(7, this->taskProgressIndicator); this->setSyncHexViewerSettingsEnabled(this->settings.syncHexViewerSettings); this->setSyncHexViewerScrollEnabled(this->settings.syncHexViewerScroll); diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.hpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.hpp index 489bba20..1129ce3b 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.hpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/SnapshotDiff.hpp @@ -96,6 +96,7 @@ namespace Bloom::Widgets QWidget* bottomBar = nullptr; QHBoxLayout* bottomBarLayout = nullptr; Label* memoryCapacityLabel = nullptr; + Label* memoryTypeLabel = nullptr; Label* diffCountLabel = nullptr; TaskProgressIndicator* taskProgressIndicator = nullptr; diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/Stylesheets/SnapshotDiff.qss b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/Stylesheets/SnapshotDiff.qss index 968db4a5..199ddd9f 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/Stylesheets/SnapshotDiff.qss +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/Stylesheets/SnapshotDiff.qss @@ -80,6 +80,7 @@ } #snapshot-diff #memory-capacity-label, +#snapshot-diff #memory-type-label, #snapshot-diff #diff-count-label { padding: 1px 5px; color: #8a8a8d; diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/UiFiles/SnapshotDiff.ui b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/UiFiles/SnapshotDiff.ui index d794fd4f..a234c565 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/UiFiles/SnapshotDiff.ui +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/UiFiles/SnapshotDiff.ui @@ -314,6 +314,16 @@ + + + + + + + + + +