mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 01:23: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
|
// Handle results
|
||||||
if (restoreIndex != -1) {
|
if (restoreIndex != -1) {
|
||||||
bannerCardComboBox->setCurrentIndex(restoreIndex);
|
bannerCardComboBox->setCurrentIndex(restoreIndex);
|
||||||
syncDeckListBannerCardWithComboBox();
|
|
||||||
} else {
|
} else {
|
||||||
// Add a placeholder "-" and set it as the current selection
|
// Add a placeholder "-" and set it as the current selection
|
||||||
bannerCardComboBox->insertItem(0, "-");
|
bannerCardComboBox->insertItem(0, "-");
|
||||||
|
|
@ -430,13 +429,6 @@ void DeckEditorDeckDockWidget::writeBannerCard(int index)
|
||||||
deckStateManager->setBannerCard(bannerCard);
|
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)
|
void DeckEditorDeckDockWidget::updateShowBannerCardComboBox(const bool visible)
|
||||||
{
|
{
|
||||||
bannerCardLabel->setHidden(!visible);
|
bannerCardLabel->setHidden(!visible);
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,6 @@ private slots:
|
||||||
void writeComments();
|
void writeComments();
|
||||||
void writeBannerCard(int);
|
void writeBannerCard(int);
|
||||||
void setSelectedIndex(const QModelIndex &newCardIndex);
|
void setSelectedIndex(const QModelIndex &newCardIndex);
|
||||||
void syncDeckListBannerCardWithComboBox();
|
|
||||||
void updateHash();
|
void updateHash();
|
||||||
void refreshShortcuts();
|
void refreshShortcuts();
|
||||||
void updateShowBannerCardComboBox(bool visible);
|
void updateShowBannerCardComboBox(bool visible);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue