Tidying
This commit is contained in:
@@ -182,8 +182,8 @@ namespace Bloom::Widgets
|
|||||||
) const {
|
) const {
|
||||||
auto labelText = this->focusedMemoryRegion.name;
|
auto labelText = this->focusedMemoryRegion.name;
|
||||||
|
|
||||||
static const auto lineColor = QColor(0x4F, 0x4F, 0x4F);
|
static constexpr auto lineColor = QColor(0x4F, 0x4F, 0x4F);
|
||||||
static const auto labelFontColor = QColor(0x68, 0x68, 0x68);
|
static constexpr auto labelFontColor = QColor(0x68, 0x68, 0x68);
|
||||||
|
|
||||||
static auto labelFont = QFont("'Ubuntu', sans-serif");
|
static auto labelFont = QFont("'Ubuntu', sans-serif");
|
||||||
labelFont.setPixelSize(12);
|
labelFont.setPixelSize(12);
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ namespace Bloom::Widgets
|
|||||||
|
|
||||||
void HexViewerWidget::refreshRegions() {
|
void HexViewerWidget::refreshRegions() {
|
||||||
if (this->byteItemGraphicsScene != nullptr) {
|
if (this->byteItemGraphicsScene != nullptr) {
|
||||||
this->byteItemGraphicsScene->refreshRegions();
|
this->byteItemGraphicsScene->rebuildItemHierarchy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -230,7 +230,7 @@ namespace Bloom::Widgets
|
|||||||
this->settings.highlightStackMemory = enabled;
|
this->settings.highlightStackMemory = enabled;
|
||||||
|
|
||||||
if (this->byteItemGraphicsScene != nullptr) {
|
if (this->byteItemGraphicsScene != nullptr) {
|
||||||
this->byteItemGraphicsScene->update();
|
this->byteItemGraphicsScene->rebuildItemHierarchy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ namespace Bloom::Widgets
|
|||||||
|
|
||||||
void ItemGraphicsScene::updateStackPointer(std::uint32_t stackPointer) {
|
void ItemGraphicsScene::updateStackPointer(std::uint32_t stackPointer) {
|
||||||
this->state.currentStackPointer = stackPointer;
|
this->state.currentStackPointer = stackPointer;
|
||||||
this->update();
|
this->rebuildItemHierarchy();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ItemGraphicsScene::selectByteItems(const std::set<std::uint32_t>& addresses) {
|
void ItemGraphicsScene::selectByteItems(const std::set<std::uint32_t>& addresses) {
|
||||||
@@ -172,11 +172,10 @@ namespace Bloom::Widgets
|
|||||||
this->update();
|
this->update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ItemGraphicsScene::refreshRegions() {
|
void ItemGraphicsScene::rebuildItemHierarchy() {
|
||||||
this->topLevelGroup->rebuildItemHierarchy();
|
this->topLevelGroup->rebuildItemHierarchy();
|
||||||
this->flattenedItems = this->topLevelGroup->flattenedItems();
|
this->flattenedItems = this->topLevelGroup->flattenedItems();
|
||||||
this->adjustSize();
|
this->adjustSize();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ItemGraphicsScene::adjustSize() {
|
void ItemGraphicsScene::adjustSize() {
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ namespace Bloom::Widgets
|
|||||||
void init();
|
void init();
|
||||||
void updateStackPointer(Targets::TargetStackPointer stackPointer);
|
void updateStackPointer(Targets::TargetStackPointer stackPointer);
|
||||||
void selectByteItems(const std::set<Targets::TargetMemoryAddress>& addresses);
|
void selectByteItems(const std::set<Targets::TargetMemoryAddress>& addresses);
|
||||||
void refreshRegions();
|
void rebuildItemHierarchy();
|
||||||
void adjustSize();
|
void adjustSize();
|
||||||
void setEnabled(bool enabled);
|
void setEnabled(bool enabled);
|
||||||
void refreshValues();
|
void refreshValues();
|
||||||
|
|||||||
Reference in New Issue
Block a user