dev update
This commit is contained in:
@@ -32,6 +32,7 @@
|
|||||||
#include <modern-qt/utility/material-icon.hh>
|
#include <modern-qt/utility/material-icon.hh>
|
||||||
#include <modern-qt/utility/wrapper/mutable-value.hh>
|
#include <modern-qt/utility/wrapper/mutable-value.hh>
|
||||||
#include <modern-qt/widget/buttons/icon-button.hh>
|
#include <modern-qt/widget/buttons/icon-button.hh>
|
||||||
|
#include <modern-qt/widget/buttons/filled-button.hh>
|
||||||
#include <modern-qt/widget/cards/filled-card.hh>
|
#include <modern-qt/widget/cards/filled-card.hh>
|
||||||
#include <modern-qt/widget/cards/outlined-card.hh>
|
#include <modern-qt/widget/cards/outlined-card.hh>
|
||||||
#include <modern-qt/widget/image.hh>
|
#include <modern-qt/widget/image.hh>
|
||||||
@@ -50,6 +51,7 @@ namespace capro = card::pro;
|
|||||||
namespace lnpro = linear::pro;
|
namespace lnpro = linear::pro;
|
||||||
namespace impro = image::pro;
|
namespace impro = image::pro;
|
||||||
namespace ibpro = icon_button::pro;
|
namespace ibpro = icon_button::pro;
|
||||||
|
namespace fbpro = filled_button::pro;
|
||||||
namespace slpro = select_widget::pro;
|
namespace slpro = select_widget::pro;
|
||||||
namespace pwpro = plot_widget::pro;
|
namespace pwpro = plot_widget::pro;
|
||||||
|
|
||||||
@@ -425,7 +427,6 @@ static auto ComConfigComponent(ThemeManager& manager) {
|
|||||||
auto& sensor = sensor_state();
|
auto& sensor = sensor_state();
|
||||||
auto link_icon_context = sensor.link_icon;
|
auto link_icon_context = sensor.link_icon;
|
||||||
|
|
||||||
// 串口下拉:改为绑定可变数据源,初始值由 SensorUiState 构造时填充
|
|
||||||
if (sensor.selected_port.isEmpty() && !sensor.port_items->get().isEmpty()) {
|
if (sensor.selected_port.isEmpty() && !sensor.port_items->get().isEmpty()) {
|
||||||
sensor.selected_port = sensor.port_items->get().front();
|
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));
|
sensor.port_items->set(std::move(ports_list));
|
||||||
}},
|
}},
|
||||||
},
|
},
|
||||||
|
lnpro::Item<FilledButton> {
|
||||||
|
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 {
|
return new Widget {
|
||||||
widget::pro::Layout {row},
|
widget::pro::Layout {row},
|
||||||
|
|||||||
Reference in New Issue
Block a user