Replaced std::vector with std::set, for automatic sorting in ListScene widget.
And added `ListScene::removeListItem()` function
This commit is contained in:
@@ -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();
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user