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