mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-28 21:26:07 +00:00
ControllerEmu: Convert Translatability to enum class
This commit is contained in:
parent
c8559a7933
commit
527f8e783c
26 changed files with 137 additions and 111 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue