Added memory type label to snapshot diff window

This commit is contained in:
Nav
2023-05-08 12:35:58 +01:00
parent 1f57ca3f21
commit c397049ea8
4 changed files with 17 additions and 1 deletions

View File

@@ -224,12 +224,16 @@ namespace Bloom::Widgets
this->bottomBarLayout = this->bottomBar->findChild<QHBoxLayout*>();
this->memoryCapacityLabel = this->bottomBar->findChild<Label*>("memory-capacity-label");
this->memoryTypeLabel = this->bottomBar->findChild<Label*>("memory-type-label");
this->diffCountLabel = this->bottomBar->findChild<Label*>("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);

View File

@@ -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;

View File

@@ -80,6 +80,7 @@
}
#snapshot-diff #memory-capacity-label,
#snapshot-diff #memory-type-label,
#snapshot-diff #diff-count-label {
padding: 1px 5px;
color: #8a8a8d;

View File

@@ -314,6 +314,16 @@
<item>
<widget class="QFrame" name="separator"/>
</item>
<item>
<widget class="Label" name="memory-type-label">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"/>
</property>
</widget>
</item>
<item>
<widget class="QFrame" name="separator"/>
</item>
<item>
<widget class="Label" name="diff-count-label">
<property name="sizePolicy">