From 3af13f1bc5842c6bc7404579ae8d0ad6b7d0f7b6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 29 May 2022 16:46:19 +0200 Subject: tracker/trackhat: implement LED tracking indicator --- tracker-trackhat/dialog.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tracker-trackhat/dialog.cpp') 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(), 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); -- cgit v1.2.3