Qt: Fix close button in settings not being translatable

This commit is contained in:
Connor McLaughlin
2020-10-03 01:13:18 +10:00
parent c051538d03
commit c6582bb7e4
2 changed files with 187 additions and 209 deletions

View File

@ -54,6 +54,7 @@ SettingsDialog::SettingsDialog(QtHostInterface* host_interface, QWidget* parent
m_ui.settingsContainer->setCurrentIndex(0);
m_ui.helpText->setText(m_category_help_text[0]);
connect(m_ui.settingsCategory, &QListWidget::currentRowChanged, this, &SettingsDialog::onCategoryCurrentRowChanged);
connect(m_ui.closeButton, &QPushButton::clicked, this, &SettingsDialog::accept);
}
SettingsDialog::~SettingsDialog() = default;