Misc: Make controller bindings translatable
This commit is contained in:
1 parent
e57ad0b6aa
commit
c88a558ae0
7 files changed
+97
-85
No files matched your search
@@ -374,7 +374,7 @@ ControllerMacroEditWidget::ControllerMacroEditWidget(ControllerMacroWidget* pare
|
||||
continue;
|
||||
|
||||
QListWidgetItem* item = new QListWidgetItem();
|
||||
item->setText(QString::fromUtf8(bi.display_name));
|
||||
item->setText(tr(cinfo->name, bi.display_name));
|
||||
item->setCheckState((std::find(m_binds.begin(), m_binds.end(), &bi) != m_binds.end()) ? Qt::Checked :
|
||||
Qt::Unchecked);
|
||||
m_ui.bindList->addItem(item);
|
||||
|
||||
Reference in new issue
Block a user