properly display logical connectors (#3072)

they should not get transalted as well
This commit is contained in:
tooomm 2018-02-04 19:47:12 +01:00 committed by Zach H
parent b6b4d7e4a0
commit aba47719b2
2 changed files with 5 additions and 5 deletions

View file

@ -4,13 +4,13 @@ const char *CardFilter::typeName(Type t)
{
switch (t) {
case TypeAnd:
return "and";
return "AND";
case TypeOr:
return "or";
return "OR";
case TypeAndNot:
return "and not";
return "AND NOT";
case TypeOrNot:
return "or not";
return "OR NOT";
default:
return "";
}

View file

@ -17,7 +17,7 @@ FilterBuilder::FilterBuilder(QWidget *parent) : QWidget(parent)
typeCombo = new QComboBox;
typeCombo->setObjectName("typeCombo");
for (int i = 0; i < CardFilter::TypeEnd; i++)
typeCombo->addItem(tr(CardFilter::typeName(static_cast<CardFilter::Type>(i))), QVariant(i));
typeCombo->addItem(CardFilter::typeName(static_cast<CardFilter::Type>(i)), QVariant(i));
QPushButton *ok = new QPushButton(QPixmap("theme:icons/increment"), QString());
ok->setObjectName("ok");