mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-02-04 19:11:38 -08:00
Tags in deck editor (#5608)
This commit is contained in:
@@ -113,6 +113,8 @@ void TabDeckEditor::createDeckDock()
|
||||
connect(bannerCardComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this,
|
||||
&TabDeckEditor::setBannerCard);
|
||||
|
||||
deckTagsDisplayWidget = new DeckPreviewDeckTagsDisplayWidget(this, deckModel->getDeckList());
|
||||
|
||||
aIncrement = new QAction(QString(), this);
|
||||
aIncrement->setIcon(QPixmap("theme:icons/increment"));
|
||||
connect(aIncrement, SIGNAL(triggered()), this, SLOT(actIncrement()));
|
||||
@@ -148,6 +150,8 @@ void TabDeckEditor::createDeckDock()
|
||||
upperLayout->addWidget(bannerCardLabel, 2, 0);
|
||||
upperLayout->addWidget(bannerCardComboBox, 2, 1);
|
||||
|
||||
upperLayout->addWidget(deckTagsDisplayWidget, 3, 1);
|
||||
|
||||
hashLabel1 = new QLabel();
|
||||
hashLabel1->setObjectName("hashLabel1");
|
||||
auto *hashSizePolicy = new QSizePolicy();
|
||||
@@ -1608,6 +1612,8 @@ void TabDeckEditor::setDeck(DeckLoader *_deck)
|
||||
deckView->expandAll();
|
||||
setModified(false);
|
||||
|
||||
deckTagsDisplayWidget->connectDeckList(deckModel->getDeckList());
|
||||
|
||||
// If they load a deck, make the deck list appear
|
||||
aDeckDockVisible->setChecked(true);
|
||||
deckDock->setVisible(aDeckDockVisible->isChecked());
|
||||
|
||||
Reference in New Issue
Block a user