properly display logical connectors (#3072)
they should not get transalted as well
This commit is contained in:
parent
b6b4d7e4a0
commit
aba47719b2
2 changed files with 5 additions and 5 deletions
|
@ -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 "";
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue