mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 17:13:57 -07:00
delete method
This commit is contained in:
parent
1613f60fba
commit
090ef1bca2
2 changed files with 0 additions and 9 deletions
|
|
@ -409,7 +409,6 @@ void DeckEditorDeckDockWidget::updateBannerCardComboBox()
|
|||
// Handle results
|
||||
if (restoreIndex != -1) {
|
||||
bannerCardComboBox->setCurrentIndex(restoreIndex);
|
||||
syncDeckListBannerCardWithComboBox();
|
||||
} else {
|
||||
// Add a placeholder "-" and set it as the current selection
|
||||
bannerCardComboBox->insertItem(0, "-");
|
||||
|
|
@ -430,13 +429,6 @@ void DeckEditorDeckDockWidget::writeBannerCard(int index)
|
|||
deckStateManager->setBannerCard(bannerCard);
|
||||
}
|
||||
|
||||
void DeckEditorDeckDockWidget::syncDeckListBannerCardWithComboBox()
|
||||
{
|
||||
auto [name, id] = bannerCardComboBox->currentData().value<QPair<QString, QString>>();
|
||||
CardRef bannerCard = {name, id};
|
||||
deckStateManager->getModel()->getDeckList()->setBannerCard(bannerCard);
|
||||
}
|
||||
|
||||
void DeckEditorDeckDockWidget::updateShowBannerCardComboBox(const bool visible)
|
||||
{
|
||||
bannerCardLabel->setHidden(!visible);
|
||||
|
|
|
|||
|
|
@ -101,7 +101,6 @@ private slots:
|
|||
void writeComments();
|
||||
void writeBannerCard(int);
|
||||
void setSelectedIndex(const QModelIndex &newCardIndex);
|
||||
void syncDeckListBannerCardWithComboBox();
|
||||
void updateHash();
|
||||
void refreshShortcuts();
|
||||
void updateShowBannerCardComboBox(bool visible);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue