Replaced std::vector with std::set, for automatic sorting in ListScene widget.

And added `ListScene::removeListItem()` function
This commit is contained in:
Nav
2023-04-15 00:00:06 +01:00
parent c5545df40a
commit 3feb60cc5c
7 changed files with 30 additions and 23 deletions

View File

@@ -173,7 +173,6 @@ namespace Bloom::Widgets
this->addSnapshot(std::move(snapshot));
}
this->snapshotListScene->sortItems();
this->snapshotListScene->refreshGeometry();
}
);
@@ -218,7 +217,6 @@ namespace Bloom::Widgets
this,
[this] (MemorySnapshot snapshot) {
this->addSnapshot(std::move(snapshot));
this->snapshotListScene->sortItems();
this->snapshotListScene->refreshGeometry();
}
);