mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
make sure filtertree stuff translates
The logic types and attribute names were not previously being translated by the tr(...) function.
This commit is contained in:
parent
2b7ea0c983
commit
610f0b6f6f
4 changed files with 20 additions and 11 deletions
|
|
@ -18,12 +18,16 @@ FilterBuilder::FilterBuilder(QWidget *parent)
|
|||
filterCombo = new QComboBox;
|
||||
for (i = 0; i < CardFilter::AttrEnd; i++)
|
||||
filterCombo->addItem(
|
||||
CardFilter::attrName(static_cast<CardFilter::Attr>(i)), QVariant(i));
|
||||
tr(CardFilter::attrName(static_cast<CardFilter::Attr>(i))),
|
||||
QVariant(i)
|
||||
);
|
||||
|
||||
typeCombo = new QComboBox;
|
||||
for (i = 0; i < CardFilter::TypeEnd; i++)
|
||||
typeCombo->addItem(
|
||||
CardFilter::typeName(static_cast<CardFilter::Type>(i)), QVariant(i));
|
||||
tr(CardFilter::typeName(static_cast<CardFilter::Type>(i))),
|
||||
QVariant(i)
|
||||
);
|
||||
|
||||
QPushButton *ok = new QPushButton("+");
|
||||
ok->setMaximumSize(20, 20);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue