mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
event handling
This commit is contained in:
parent
e796af2b89
commit
77015c9ebf
34 changed files with 891 additions and 855 deletions
|
|
@ -89,6 +89,13 @@ DeckViewScene::~DeckViewScene()
|
|||
|
||||
void DeckViewScene::setDeck(DeckList *_deck)
|
||||
{
|
||||
if (deck)
|
||||
delete deck;
|
||||
QMapIterator<QString, DeckViewCardContainer *> i(cardContainers);
|
||||
while (i.hasNext())
|
||||
delete i.next().value();
|
||||
cardContainers.clear();
|
||||
|
||||
deck = _deck;
|
||||
rebuildTree();
|
||||
rearrangeItems();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue