mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 08:52:15 -07:00
Cleanup
This commit is contained in:
parent
0f59156008
commit
b667f3c79d
3 changed files with 5 additions and 4 deletions
|
|
@ -890,7 +890,8 @@ void TabDeckEditor::updateBannerCardComboBox()
|
||||||
void TabDeckEditor::setBannerCard(int /* changedIndex */)
|
void TabDeckEditor::setBannerCard(int /* changedIndex */)
|
||||||
{
|
{
|
||||||
QVariantMap itemData = bannerCardComboBox->itemData(bannerCardComboBox->currentIndex()).toMap();
|
QVariantMap itemData = bannerCardComboBox->itemData(bannerCardComboBox->currentIndex()).toMap();
|
||||||
deckModel->getDeckList()->setBannerCard(QPair<QString, QString>(itemData["name"].toString(), itemData["uuid"].toString()));
|
deckModel->getDeckList()->setBannerCard(
|
||||||
|
QPair<QString, QString>(itemData["name"].toString(), itemData["uuid"].toString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabDeckEditor::updateCardInfo(CardInfoPtr _card)
|
void TabDeckEditor::updateCardInfo(CardInfoPtr _card)
|
||||||
|
|
|
||||||
|
|
@ -91,8 +91,8 @@ private:
|
||||||
|
|
||||||
int myAddTab(Tab *tab, QAction *manager = nullptr);
|
int myAddTab(Tab *tab, QAction *manager = nullptr);
|
||||||
void addCloseButtonToTab(Tab *tab, int tabIndex, QAction *manager);
|
void addCloseButtonToTab(Tab *tab, int tabIndex, QAction *manager);
|
||||||
static QString sanitizeTabName(QString dirty) ;
|
static QString sanitizeTabName(QString dirty);
|
||||||
static QString sanitizeHtml(QString dirty) ;
|
static QString sanitizeHtml(QString dirty);
|
||||||
void resetTabsMenu();
|
void resetTabsMenu();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ class TabDeckStorageVisual final : public Tab
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit TabDeckStorageVisual(TabSupervisor *_tabSupervisor);
|
explicit TabDeckStorageVisual(TabSupervisor *_tabSupervisor);
|
||||||
void retranslateUi() override {};
|
void retranslateUi() override{};
|
||||||
[[nodiscard]] QString getTabText() const override
|
[[nodiscard]] QString getTabText() const override
|
||||||
{
|
{
|
||||||
return tr("Visual Deck storage");
|
return tr("Visual Deck storage");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue