Tidying
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user