diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-05-29 16:46:19 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-05-29 18:49:15 +0200 |
commit | 3af13f1bc5842c6bc7404579ae8d0ad6b7d0f7b6 (patch) | |
tree | cf4f863f2bdc1dbc29714350a19a5db140efb813 /tracker-trackhat/dialog.cpp | |
parent | 0b2a330e0edb4cd1fecdd59d5ff86998544c2b94 (diff) |
tracker/trackhat: implement LED tracking indicator
Diffstat (limited to 'tracker-trackhat/dialog.cpp')
-rw-r--r-- | tracker-trackhat/dialog.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tracker-trackhat/dialog.cpp b/tracker-trackhat/dialog.cpp index 02ecc637..4ef64f50 100644 --- a/tracker-trackhat/dialog.cpp +++ b/tracker-trackhat/dialog.cpp @@ -82,6 +82,15 @@ trackhat_dialog::trackhat_dialog() connect(&t.point_filter_deadzone, value_::value_changed<slider_value>(), ui.point_filter_deadzone_label, [this] { ui.point_filter_deadzone_label->setValue(*t.point_filter_deadzone); }, Qt::QueuedConnection); + // led + + using trackhat_impl::led_mode; + ui.led_mode->setItemData(0, (int)led_mode::off); + ui.led_mode->setItemData(1, (int)led_mode::constant); + ui.led_mode->setItemData(2, (int)led_mode::dynamic); + + tie_setting(t.led, ui.led_mode); + // stuff connect(&poll_timer, &QTimer::timeout, this, &trackhat_dialog::poll_tracker_info); |