ControllerEmu: Convert Translatability to enum class

This commit is contained in:
Dentomologist
2023-05-29 16:31:19 -07:00
parent c8559a7933
commit 527f8e783c
26 changed files with 137 additions and 111 deletions

View File

@ -281,7 +281,7 @@ void MappingWidget::CreateControl(const ControllerEmu::Control* control, QFormLa
button->setMinimumWidth(100);
button->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
const bool translate = control->translate == ControllerEmu::Translate;
const bool translate = control->translate == ControllerEmu::Translatability::Translate;
const QString translated_name =
translate ? tr(control->ui_name.c_str()) : QString::fromStdString(control->ui_name);
layout->addRow(translated_name, button);