summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/options-dialog.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-02 15:29:03 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-10-02 15:29:03 +0200
commit851116d818ddd01d5935c1bba10fe4900771d980 (patch)
treeecdf4ba5e63cc0ee854e11223f80b87cfa2c14a0 /facetracknoir/options-dialog.cpp
parent4117f4c65ef98a0dab2381e6ef6a969fb1be5f14 (diff)
main: add relative and absolute center options
Closes #237
Diffstat (limited to 'facetracknoir/options-dialog.cpp')
-rw-r--r--facetracknoir/options-dialog.cpp2
1 files changed, 2 insertions, 0 deletions
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); });