Move new method to DeckListModel so we don't have to include CardDatabaseManager in common.

This commit is contained in:
Lukas Brübach 2025-03-01 12:55:31 +01:00
parent 7bb18c84c7
commit 268d3f2e6b
3 changed files with 3 additions and 67 deletions

View file

@ -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)