From 851116d818ddd01d5935c1bba10fe4900771d980 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 2 Oct 2015 15:29:03 +0200 Subject: main: add relative and absolute center options Closes #237 --- facetracknoir/options-dialog.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'facetracknoir/options-dialog.cpp') diff --git a/facetracknoir/options-dialog.cpp b/facetracknoir/options-dialog.cpp index 1ec26d5e..fef2b0ca 100644 --- a/facetracknoir/options-dialog.cpp +++ b/facetracknoir/options-dialog.cpp @@ -50,6 +50,8 @@ OptionsDialog::OptionsDialog() tie_setting(s.s_main.camera_pitch, ui.camera_pitch); tie_setting(s.s_main.camera_roll, ui.camera_roll); + tie_setting(s.s_main.center_method, ui.center_method); + connect(ui.bind_center, &QPushButton::pressed, [&]() -> void { bind_key(s.center.keycode, ui.center_text); }); connect(ui.bind_zero, &QPushButton::pressed, [&]() -> void { bind_key(s.zero.keycode, ui.zero_text); }); connect(ui.bind_toggle, &QPushButton::pressed, [&]() -> void { bind_key(s.toggle.keycode, ui.toggle_text); }); -- cgit v1.2.3