From 7517f79c07dff6da382b4d28199ddafcb3f6c9cb Mon Sep 17 00:00:00 2001 From: lenn Date: Wed, 5 Nov 2025 09:44:58 +0800 Subject: [PATCH] dev update --- components/view.cc | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/components/view.cc b/components/view.cc index 36c4ea0..e121d19 100644 --- a/components/view.cc +++ b/components/view.cc @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -50,6 +51,7 @@ namespace capro = card::pro; namespace lnpro = linear::pro; namespace impro = image::pro; namespace ibpro = icon_button::pro; +namespace fbpro = filled_button::pro; namespace slpro = select_widget::pro; namespace pwpro = plot_widget::pro; @@ -425,7 +427,6 @@ static auto ComConfigComponent(ThemeManager& manager) { auto& sensor = sensor_state(); auto link_icon_context = sensor.link_icon; - // 串口下拉:改为绑定可变数据源,初始值由 SensorUiState 构造时填充 if (sensor.selected_port.isEmpty() && !sensor.port_items->get().isEmpty()) { sensor.selected_port = sensor.port_items->get().front(); } @@ -536,7 +537,18 @@ static auto ComConfigComponent(ThemeManager& manager) { sensor.port_items->set(std::move(ports_list)); }}, }, - + lnpro::Item { + fbpro::ThemeManager {manager}, + fbpro::FixedSize {40, 40}, + fbpro::Color {FilledButton::Color::TONAL}, + fbpro::Font {material::kRoundSmallFont}, + fbpro::FontIcon {material::icon::kRefresh}, + fbpro::Clickable { + [] { + qDebug() << "export"; + } + } + } }; return new Widget { widget::pro::Layout {row},