This commit is contained in:
Nav
2023-03-07 22:39:49 +00:00
parent c1c64b965c
commit e83ce7de8f
4 changed files with 7 additions and 8 deletions

View File

@@ -182,8 +182,8 @@ namespace Bloom::Widgets
) const {
auto labelText = this->focusedMemoryRegion.name;
static const auto lineColor = QColor(0x4F, 0x4F, 0x4F);
static const auto labelFontColor = QColor(0x68, 0x68, 0x68);
static constexpr auto lineColor = QColor(0x4F, 0x4F, 0x4F);
static constexpr auto labelFontColor = QColor(0x68, 0x68, 0x68);
static auto labelFont = QFont("'Ubuntu', sans-serif");
labelFont.setPixelSize(12);

View File

@@ -199,7 +199,7 @@ namespace Bloom::Widgets
void HexViewerWidget::refreshRegions() {
if (this->byteItemGraphicsScene != nullptr) {
this->byteItemGraphicsScene->refreshRegions();
this->byteItemGraphicsScene->rebuildItemHierarchy();
}
}
@@ -230,7 +230,7 @@ namespace Bloom::Widgets
this->settings.highlightStackMemory = enabled;
if (this->byteItemGraphicsScene != nullptr) {
this->byteItemGraphicsScene->update();
this->byteItemGraphicsScene->rebuildItemHierarchy();
}
}

View File

@@ -156,7 +156,7 @@ namespace Bloom::Widgets
void ItemGraphicsScene::updateStackPointer(std::uint32_t stackPointer) {
this->state.currentStackPointer = stackPointer;
this->update();
this->rebuildItemHierarchy();
}
void ItemGraphicsScene::selectByteItems(const std::set<std::uint32_t>& addresses) {
@@ -172,11 +172,10 @@ namespace Bloom::Widgets
this->update();
}
void ItemGraphicsScene::refreshRegions() {
void ItemGraphicsScene::rebuildItemHierarchy() {
this->topLevelGroup->rebuildItemHierarchy();
this->flattenedItems = this->topLevelGroup->flattenedItems();
this->adjustSize();
return;
}
void ItemGraphicsScene::adjustSize() {

View File

@@ -55,7 +55,7 @@ namespace Bloom::Widgets
void init();
void updateStackPointer(Targets::TargetStackPointer stackPointer);
void selectByteItems(const std::set<Targets::TargetMemoryAddress>& addresses);
void refreshRegions();
void rebuildItemHierarchy();
void adjustSize();
void setEnabled(bool enabled);
void refreshValues();