Added memory type label to snapshot diff window
This commit is contained in:
@@ -224,12 +224,16 @@ namespace Bloom::Widgets
|
|||||||
this->bottomBarLayout = this->bottomBar->findChild<QHBoxLayout*>();
|
this->bottomBarLayout = this->bottomBar->findChild<QHBoxLayout*>();
|
||||||
|
|
||||||
this->memoryCapacityLabel = this->bottomBar->findChild<Label*>("memory-capacity-label");
|
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->diffCountLabel = this->bottomBar->findChild<Label*>("diff-count-label");
|
||||||
|
|
||||||
this->memoryCapacityLabel->setText(QLocale(QLocale::English).toString(this->hexViewerDataA->size()) + " bytes");
|
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->taskProgressIndicator = new TaskProgressIndicator(this);
|
||||||
this->bottomBarLayout->insertWidget(5, this->taskProgressIndicator);
|
this->bottomBarLayout->insertWidget(7, this->taskProgressIndicator);
|
||||||
|
|
||||||
this->setSyncHexViewerSettingsEnabled(this->settings.syncHexViewerSettings);
|
this->setSyncHexViewerSettingsEnabled(this->settings.syncHexViewerSettings);
|
||||||
this->setSyncHexViewerScrollEnabled(this->settings.syncHexViewerScroll);
|
this->setSyncHexViewerScrollEnabled(this->settings.syncHexViewerScroll);
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ namespace Bloom::Widgets
|
|||||||
QWidget* bottomBar = nullptr;
|
QWidget* bottomBar = nullptr;
|
||||||
QHBoxLayout* bottomBarLayout = nullptr;
|
QHBoxLayout* bottomBarLayout = nullptr;
|
||||||
Label* memoryCapacityLabel = nullptr;
|
Label* memoryCapacityLabel = nullptr;
|
||||||
|
Label* memoryTypeLabel = nullptr;
|
||||||
Label* diffCountLabel = nullptr;
|
Label* diffCountLabel = nullptr;
|
||||||
|
|
||||||
TaskProgressIndicator* taskProgressIndicator = nullptr;
|
TaskProgressIndicator* taskProgressIndicator = nullptr;
|
||||||
|
|||||||
@@ -80,6 +80,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#snapshot-diff #memory-capacity-label,
|
#snapshot-diff #memory-capacity-label,
|
||||||
|
#snapshot-diff #memory-type-label,
|
||||||
#snapshot-diff #diff-count-label {
|
#snapshot-diff #diff-count-label {
|
||||||
padding: 1px 5px;
|
padding: 1px 5px;
|
||||||
color: #8a8a8d;
|
color: #8a8a8d;
|
||||||
|
|||||||
@@ -314,6 +314,16 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QFrame" name="separator"/>
|
<widget class="QFrame" name="separator"/>
|
||||||
</item>
|
</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>
|
<item>
|
||||||
<widget class="Label" name="diff-count-label">
|
<widget class="Label" name="diff-count-label">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
|||||||
Reference in New Issue
Block a user