mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-16 15:32:15 -07:00
Fix typo.
Took 7 minutes
This commit is contained in:
parent
c3181a1c0a
commit
7e62235411
2 changed files with 5 additions and 2 deletions
|
|
@ -126,7 +126,7 @@ void DeckEditorDeckDockWidget::createDeckDock()
|
||||||
formatComboBox->addItem("Loading Database...");
|
formatComboBox->addItem("Loading Database...");
|
||||||
formatComboBox->setEnabled(false); // Disable until loaded
|
formatComboBox->setEnabled(false); // Disable until loaded
|
||||||
|
|
||||||
auto legalityCheckerButton = new QPushButton(this);
|
legalityCheckerButton = new QPushButton(this);
|
||||||
|
|
||||||
connect(legalityCheckerButton, &QPushButton::clicked, this, &DeckEditorDeckDockWidget::checkDeckFormatLegality);
|
connect(legalityCheckerButton, &QPushButton::clicked, this, &DeckEditorDeckDockWidget::checkDeckFormatLegality);
|
||||||
|
|
||||||
|
|
@ -287,7 +287,7 @@ void DeckEditorDeckDockWidget::checkDeckFormatLegality()
|
||||||
for (const QString &prop : card.getCardPtr()->getProperties()) {
|
for (const QString &prop : card.getCardPtr()->getProperties()) {
|
||||||
if (prop.startsWith("format-")) {
|
if (prop.startsWith("format-")) {
|
||||||
hasFormatProperty = true;
|
hasFormatProperty = true;
|
||||||
if (prop == formatProperty && card.getCardPtr()->getProperty(formatProperty) == "legal9") {
|
if (prop == formatProperty && card.getCardPtr()->getProperty(formatProperty) == "legal") {
|
||||||
isLegal = true;
|
isLegal = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -728,6 +728,8 @@ void DeckEditorDeckDockWidget::retranslateUi()
|
||||||
commentsLabel->setText(tr("&Comments:"));
|
commentsLabel->setText(tr("&Comments:"));
|
||||||
activeGroupCriteriaLabel->setText(tr("Group by:"));
|
activeGroupCriteriaLabel->setText(tr("Group by:"));
|
||||||
formatLabel->setText(tr("Format:"));
|
formatLabel->setText(tr("Format:"));
|
||||||
|
legalityCheckerButton->setText(tr("Check card legality"));
|
||||||
|
|
||||||
hashLabel1->setText(tr("Hash:"));
|
hashLabel1->setText(tr("Hash:"));
|
||||||
|
|
||||||
aIncrement->setText(tr("&Increment number"));
|
aIncrement->setText(tr("&Increment number"));
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,7 @@ private:
|
||||||
QComboBox *activeGroupCriteriaComboBox;
|
QComboBox *activeGroupCriteriaComboBox;
|
||||||
QLabel *formatLabel;
|
QLabel *formatLabel;
|
||||||
QComboBox *formatComboBox;
|
QComboBox *formatComboBox;
|
||||||
|
QPushButton *legalityCheckerButton;
|
||||||
|
|
||||||
QAction *aRemoveCard, *aIncrement, *aDecrement, *aSwapCard;
|
QAction *aRemoveCard, *aIncrement, *aDecrement, *aSwapCard;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue