mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-11 12:54:10 -07:00
Nuke getDeckList()
Took 9 minutes
This commit is contained in:
parent
5e961199d0
commit
51f100bec0
4 changed files with 4 additions and 16 deletions
|
|
@ -393,11 +393,6 @@ void DeckEditorDeckDockWidget::setDeck(DeckLoader *_deck)
|
|||
emit deckChanged();
|
||||
}
|
||||
|
||||
DeckList *DeckEditorDeckDockWidget::getDeckList()
|
||||
{
|
||||
return deckModel->getDeckList();
|
||||
}
|
||||
|
||||
DeckLoader *DeckEditorDeckDockWidget::getDeckLoader()
|
||||
{
|
||||
return deckLoader;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@ public slots:
|
|||
void cleanDeck();
|
||||
void updateBannerCardComboBox();
|
||||
void setDeck(DeckLoader *_deck);
|
||||
DeckList *getDeckList();
|
||||
DeckLoader *getDeckLoader();
|
||||
void actIncrement();
|
||||
bool swapCard(const QModelIndex &idx);
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ void AbstractTabDeckEditor::openDeck(DeckLoader *deck)
|
|||
void AbstractTabDeckEditor::setDeck(DeckLoader *_deck)
|
||||
{
|
||||
deckDockWidget->setDeck(_deck);
|
||||
CardPictureLoader::cacheCardPixmaps(CardDatabaseManager::query()->getCards(getDeckList()->getCardRefList()));
|
||||
CardPictureLoader::cacheCardPixmaps(CardDatabaseManager::query()->getCards(getDeckLoader()->getCardRefList()));
|
||||
setModified(false);
|
||||
|
||||
aDeckDockVisible->setChecked(true);
|
||||
|
|
@ -217,11 +217,6 @@ void AbstractTabDeckEditor::setDeck(DeckLoader *_deck)
|
|||
}
|
||||
|
||||
/** @brief Returns the currently loaded deck. */
|
||||
DeckList *AbstractTabDeckEditor::getDeckList() const
|
||||
{
|
||||
return deckDockWidget->getDeckList();
|
||||
}
|
||||
|
||||
DeckLoader *AbstractTabDeckEditor::getDeckLoader() const
|
||||
{
|
||||
return deckDockWidget->getDeckLoader();
|
||||
|
|
@ -423,7 +418,7 @@ bool AbstractTabDeckEditor::actSaveDeckAs()
|
|||
dialog.setAcceptMode(QFileDialog::AcceptSave);
|
||||
dialog.setDefaultSuffix("cod");
|
||||
dialog.setNameFilters(DeckLoader::FILE_NAME_FILTERS);
|
||||
dialog.selectFile(getDeckList()->getName().trimmed());
|
||||
dialog.selectFile(getDeckLoader()->getName().trimmed());
|
||||
|
||||
if (!dialog.exec())
|
||||
return false;
|
||||
|
|
@ -605,14 +600,14 @@ void AbstractTabDeckEditor::actExportDeckDecklistXyz()
|
|||
void AbstractTabDeckEditor::actAnalyzeDeckDeckstats()
|
||||
{
|
||||
auto *interface = new DeckStatsInterface(*databaseDisplayDockWidget->databaseModel->getDatabase(), this);
|
||||
interface->analyzeDeck(getDeckList());
|
||||
interface->analyzeDeck(getDeckLoader());
|
||||
}
|
||||
|
||||
/** @brief Analyzes the deck using TappedOut. */
|
||||
void AbstractTabDeckEditor::actAnalyzeDeckTappedout()
|
||||
{
|
||||
auto *interface = new TappedOutInterface(*databaseDisplayDockWidget->databaseModel->getDatabase(), this);
|
||||
interface->analyzeDeck(getDeckList());
|
||||
interface->analyzeDeck(getDeckLoader());
|
||||
}
|
||||
|
||||
/** @brief Applies a new filter tree to the database display. */
|
||||
|
|
|
|||
|
|
@ -117,7 +117,6 @@ public:
|
|||
void openDeck(DeckLoader *deck);
|
||||
|
||||
/** @brief Returns the currently active deck. */
|
||||
DeckList *getDeckList() const;
|
||||
DeckLoader *getDeckLoader() const;
|
||||
|
||||
/** @brief Sets the modified state of the tab.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue