mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-16 07:22:16 -07:00
Move new method to DeckListModel so we don't have to include CardDatabaseManager in common.
This commit is contained in:
parent
7bb18c84c7
commit
268d3f2e6b
3 changed files with 3 additions and 67 deletions
|
|
@ -204,9 +204,9 @@ void VisualDeckEditorWidget::populateCards()
|
|||
|
||||
if (!deckListModel)
|
||||
return;
|
||||
DeckList *decklist = deckListModel->getDeckList();
|
||||
mainDeckCards = decklist->getCardsAsCardInfoPtrsForZone(DECK_ZONE_MAIN);
|
||||
sideboardCards = decklist->getCardsAsCardInfoPtrsForZone(DECK_ZONE_SIDE);
|
||||
|
||||
mainDeckCards = deckListModel->getCardsAsCardInfoPtrsForZone(DECK_ZONE_MAIN);
|
||||
sideboardCards = deckListModel->getCardsAsCardInfoPtrsForZone(DECK_ZONE_SIDE);
|
||||
}
|
||||
|
||||
void VisualDeckEditorWidget::sortCardList(const QStringList properties, Qt::SortOrder order = Qt::AscendingOrder)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue