EDHREC in client mockup.

This commit is contained in:
Lukas Brübach 2025-01-15 22:25:26 +01:00
parent 402d2f8776
commit 0f32dada15
27 changed files with 926 additions and 1 deletions

View file

@ -720,6 +720,18 @@ TabDeckEditor *TabSupervisor::addDeckEditorTab(const DeckLoader *deckToOpen)
return tab;
}
TabEdhRec *TabSupervisor::addEdhrecTab(const CardInfoPtr cardToQuery)
{
TabEdhRec *tab = new TabEdhRec(this);
if (cardToQuery)
tab->setCard(cardToQuery);
// connect(tab, &TabDeckEditor::deckEditorClosing, this, &TabSupervisor::deckEditorClosed);
// connect(tab, &TabDeckEditor::openDeckEditor, this, &TabSupervisor::addDeckEditorTab);
myAddTab(tab);
setCurrentWidget(tab);
return tab;
}
void TabSupervisor::deckEditorClosed(TabDeckEditor *tab)
{
if (tab == currentWidget())