mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-11 04:43:56 -07:00
Add button to home tab.
Took 8 minutes
This commit is contained in:
parent
c3ffa35f62
commit
ce1896f5af
2 changed files with 3 additions and 7 deletions
|
|
@ -196,6 +196,9 @@ QGroupBox *HomeWidget::createButtons()
|
||||||
auto edhrecButton = new HomeStyledButton(tr("Browse EDHRec"), gradientColors);
|
auto edhrecButton = new HomeStyledButton(tr("Browse EDHRec"), gradientColors);
|
||||||
connect(edhrecButton, &QPushButton::clicked, tabSupervisor, &TabSupervisor::addEdhrecMainTab);
|
connect(edhrecButton, &QPushButton::clicked, tabSupervisor, &TabSupervisor::addEdhrecMainTab);
|
||||||
boxLayout->addWidget(edhrecButton);
|
boxLayout->addWidget(edhrecButton);
|
||||||
|
auto archidektButton = new HomeStyledButton(tr("Browse Archidekt"), gradientColors);
|
||||||
|
connect(archidektButton, &QPushButton::clicked, tabSupervisor, &TabSupervisor::addArchidektTab);
|
||||||
|
boxLayout->addWidget(archidektButton);
|
||||||
auto replaybutton = new HomeStyledButton(tr("View Replays"), gradientColors);
|
auto replaybutton = new HomeStyledButton(tr("View Replays"), gradientColors);
|
||||||
connect(replaybutton, &QPushButton::clicked, tabSupervisor, [this] { tabSupervisor->actTabReplays(true); });
|
connect(replaybutton, &QPushButton::clicked, tabSupervisor, [this] { tabSupervisor->actTabReplays(true); });
|
||||||
boxLayout->addWidget(replaybutton);
|
boxLayout->addWidget(replaybutton);
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,3 @@
|
||||||
// NOTE: You must add the following members to tab_archidekt.h:
|
|
||||||
// QComboBox* edhBracketCombo;
|
|
||||||
// QLineEdit* deckTagNameField;
|
|
||||||
// QComboBox* orderByCombo;
|
|
||||||
// QCheckBox* packagesCheck;
|
|
||||||
// QSpinBox* pageSpin;
|
|
||||||
|
|
||||||
#include "tab_archidekt.h"
|
#include "tab_archidekt.h"
|
||||||
|
|
||||||
#include "../../../cards/additional_info/mana_symbol_widget.h"
|
#include "../../../cards/additional_info/mana_symbol_widget.h"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue