mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 17:13:57 -07:00
nvm, just refactor for now
This commit is contained in:
parent
2db9dd2937
commit
5efac416ab
2 changed files with 0 additions and 12 deletions
|
|
@ -30,11 +30,6 @@ void ColorIdentityWidget::populateManaSymbolWidgets()
|
|||
QString fullColorIdentity = "WUBRG";
|
||||
QStringList symbols = parseColorIdentity(colorIdentity); // Parse mana cost string
|
||||
|
||||
// clear old layout
|
||||
for (auto widgets : layout->findChildren<ManaSymbolWidget *>()) {
|
||||
widgets->deleteLater();
|
||||
}
|
||||
|
||||
// populate mana symbols
|
||||
if (SettingsCache::instance().getVisualDeckStorageDrawUnusedColorIdentities()) {
|
||||
for (const QString symbol : fullColorIdentity) {
|
||||
|
|
@ -49,12 +44,6 @@ void ColorIdentityWidget::populateManaSymbolWidgets()
|
|||
}
|
||||
}
|
||||
|
||||
void ColorIdentityWidget::setColorIdentity(const QString &_colorIdentity)
|
||||
{
|
||||
colorIdentity = _colorIdentity;
|
||||
populateManaSymbolWidgets();
|
||||
}
|
||||
|
||||
void ColorIdentityWidget::toggleUnusedVisibility()
|
||||
{
|
||||
if (layout != nullptr) {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ public:
|
|||
static QStringList parseColorIdentity(const QString &manaString);
|
||||
|
||||
public slots:
|
||||
void setColorIdentity(const QString &_colorIdentity);
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
void toggleUnusedVisibility();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue