This commit is contained in:
Nav
2023-03-13 00:45:26 +00:00
parent c394ce52df
commit 4895b2c919
11 changed files with 98 additions and 61 deletions

View File

@@ -137,10 +137,13 @@ namespace Bloom::Widgets
}
void ItemGraphicsScene::init() {
auto* constructHexViewerTopLevelGroupItem = new ConstructHexViewerTopLevelGroupItem(this->focusedMemoryRegions, this->state);
const auto constructHexViewerTopLevelGroupItem = QSharedPointer<ConstructHexViewerTopLevelGroupItem>(
new ConstructHexViewerTopLevelGroupItem(this->focusedMemoryRegions, this->state),
&QObject::deleteLater
);
QObject::connect(
constructHexViewerTopLevelGroupItem,
constructHexViewerTopLevelGroupItem.get(),
&ConstructHexViewerTopLevelGroupItem::topLevelGroupItem,
this,
[this] (TopLevelGroupItem* item) {