mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 09:33: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";
|
QString fullColorIdentity = "WUBRG";
|
||||||
QStringList symbols = parseColorIdentity(colorIdentity); // Parse mana cost string
|
QStringList symbols = parseColorIdentity(colorIdentity); // Parse mana cost string
|
||||||
|
|
||||||
// clear old layout
|
|
||||||
for (auto widgets : layout->findChildren<ManaSymbolWidget *>()) {
|
|
||||||
widgets->deleteLater();
|
|
||||||
}
|
|
||||||
|
|
||||||
// populate mana symbols
|
// populate mana symbols
|
||||||
if (SettingsCache::instance().getVisualDeckStorageDrawUnusedColorIdentities()) {
|
if (SettingsCache::instance().getVisualDeckStorageDrawUnusedColorIdentities()) {
|
||||||
for (const QString symbol : fullColorIdentity) {
|
for (const QString symbol : fullColorIdentity) {
|
||||||
|
|
@ -49,12 +44,6 @@ void ColorIdentityWidget::populateManaSymbolWidgets()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ColorIdentityWidget::setColorIdentity(const QString &_colorIdentity)
|
|
||||||
{
|
|
||||||
colorIdentity = _colorIdentity;
|
|
||||||
populateManaSymbolWidgets();
|
|
||||||
}
|
|
||||||
|
|
||||||
void ColorIdentityWidget::toggleUnusedVisibility()
|
void ColorIdentityWidget::toggleUnusedVisibility()
|
||||||
{
|
{
|
||||||
if (layout != nullptr) {
|
if (layout != nullptr) {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@ public:
|
||||||
static QStringList parseColorIdentity(const QString &manaString);
|
static QStringList parseColorIdentity(const QString &manaString);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setColorIdentity(const QString &_colorIdentity);
|
|
||||||
void resizeEvent(QResizeEvent *event) override;
|
void resizeEvent(QResizeEvent *event) override;
|
||||||
void toggleUnusedVisibility();
|
void toggleUnusedVisibility();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue