mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-28 01:52:29 -06:00
move comment
This commit is contained in:
parent
57f224fc50
commit
dce82fa005
1 changed files with 2 additions and 3 deletions
|
@ -96,9 +96,6 @@ static QString AnalogToText(const Common::ParamPackage& param, const std::string
|
||||||
ConfigureInput::ConfigureInput(QWidget* parent)
|
ConfigureInput::ConfigureInput(QWidget* parent)
|
||||||
: QWidget(parent), ui(std::make_unique<Ui::ConfigureInput>()),
|
: QWidget(parent), ui(std::make_unique<Ui::ConfigureInput>()),
|
||||||
timeout_timer(std::make_unique<QTimer>()), poll_timer(std::make_unique<QTimer>()) {
|
timeout_timer(std::make_unique<QTimer>()), poll_timer(std::make_unique<QTimer>()) {
|
||||||
|
|
||||||
// If the user closes the dialog, the changes are reverted in `GMainWindow::OnConfigure()`
|
|
||||||
|
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
setFocusPolicy(Qt::ClickFocus);
|
setFocusPolicy(Qt::ClickFocus);
|
||||||
|
|
||||||
|
@ -141,6 +138,8 @@ ConfigureInput::ConfigureInput(QWidget* parent)
|
||||||
handleClick(button_map[button_id],
|
handleClick(button_map[button_id],
|
||||||
[=](const Common::ParamPackage& params) {
|
[=](const Common::ParamPackage& params) {
|
||||||
buttons_param[button_id] = params;
|
buttons_param[button_id] = params;
|
||||||
|
// If the user closes the dialog, the changes are reverted in
|
||||||
|
// `GMainWindow::OnConfigure()`
|
||||||
applyConfiguration();
|
applyConfiguration();
|
||||||
Settings::SaveProfile(ui->profile->currentIndex());
|
Settings::SaveProfile(ui->profile->currentIndex());
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue