diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-26 17:09:17 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-26 17:19:19 +0200 |
commit | b008aefee41a21b24f1d2f1f23cd6c78b888ede5 (patch) | |
tree | fb1d42dbd30c937d956811796856453f29507382 /gui/options-dialog.cpp | |
parent | 47dec53450dec0264489cddb0005e13593f43399 (diff) |
many modules: trivial cleanups only
- Remove "this->" where it's not needed. Possibly rename shadowed vars.
- Don't reload the options bundle manually since `options::opts' exists
for that very reason.
- Remove '^ \+$' whitespace
- :retab
Diffstat (limited to 'gui/options-dialog.cpp')
-rw-r--r-- | gui/options-dialog.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gui/options-dialog.cpp b/gui/options-dialog.cpp index e7a54bb2..49df4309 100644 --- a/gui/options-dialog.cpp +++ b/gui/options-dialog.cpp @@ -40,9 +40,9 @@ OptionsDialog::OptionsDialog(main_settings& main, connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel())); tie_setting(main.tray_enabled, ui.trayp); - + tie_setting(main.center_at_startup, ui.center_at_startup); - + tie_setting(main.tcomp_p, ui.tcomp_enable); tie_setting(main.tcomp_tz, ui.tcomp_rz); @@ -66,7 +66,7 @@ OptionsDialog::OptionsDialog(main_settings& main, tie_setting(main.a_x.src, ui.src_x); tie_setting(main.a_y.src, ui.src_y); tie_setting(main.a_z.src, ui.src_z); - + tie_setting(main.camera_yaw, ui.camera_yaw); tie_setting(main.camera_pitch, ui.camera_pitch); tie_setting(main.camera_roll, ui.camera_roll); @@ -89,7 +89,7 @@ OptionsDialog::OptionsDialog(main_settings& main, ui.toggle_held_text->setText(kopts_to_string(main.key_toggle_press)); ui.zero_text->setText(kopts_to_string(main.key_zero)); ui.zero_held_text->setText(kopts_to_string(main.key_zero_press)); - + ui.start_tracking_text->setText(kopts_to_string(main.key_start_tracking)); ui.stop_tracking_text->setText(kopts_to_string(main.key_stop_tracking)); ui.toggle_tracking_text->setText(kopts_to_string(main.key_toggle_tracking)); @@ -136,12 +136,12 @@ void OptionsDialog::bind_key(key_opts& kopts, QLabel* label) void OptionsDialog::doOK() { main.b->save(); ui.game_detector->save(); - this->close(); + close(); emit reload(); } -void OptionsDialog::doCancel() { - main.b->reload(); +void OptionsDialog::doCancel() +{ ui.game_detector->revert(); close(); } |