feat: integrate tactile stream decoding
This commit is contained in:
@@ -70,24 +70,17 @@ static auto ComConfigComponent(ThemeManager& manager, auto&& callback) {
|
||||
slpro::LeadingIcon { material::icon::kArrowDropDown, material::regular::font},
|
||||
slpro::IndexChanged {[&](auto& self){ qDebug() << self.currentIndex();}},
|
||||
slpro::LeadingText {"Baud"},
|
||||
// slpro::MutableItems {select_baud_context},
|
||||
MutableForward {
|
||||
slpro::SelectItems {},
|
||||
select_baud_context,
|
||||
}
|
||||
},
|
||||
// lnpro::Item<MatSelect> {
|
||||
// // slpro::ThemeManager {manager},
|
||||
// // slpro::LeadingIcon {material::icon::kArrowDropDown, material::regular::font},
|
||||
// // slpro::IndexChanged {}
|
||||
// // }
|
||||
lnpro::SpacingItem {20},
|
||||
lnpro::Item<IconButton> {
|
||||
ibpro::ThemeManager {manager},
|
||||
ibpro::FixedSize {40, 40},
|
||||
ibpro::Color { IconButton::Color::TONAL },
|
||||
ibpro::Font { material::kRoundSmallFont },
|
||||
// ibpro::FontIcon { material::icon::kFavorite },
|
||||
ibpro::FontIcon { material::icon::kAddLink },
|
||||
ibpro::Clickable {[slogen_context] {
|
||||
constexpr auto random_slogen = [] {
|
||||
@@ -113,15 +106,14 @@ static auto ComConfigComponent(ThemeManager& manager, auto&& callback) {
|
||||
ibpro::Font { material::kRoundSmallFont },
|
||||
ibpro::FontIcon { material::icon::kRefresh },
|
||||
ibpro::Clickable {[select_baud_context] {
|
||||
// 定义两组不同的选项
|
||||
|
||||
static constexpr auto options_group1 = std::array {
|
||||
"第一组选项1", "第一组选项2", "第一组选项3"
|
||||
};
|
||||
static constexpr auto options_group2 = std::array {
|
||||
"第二组选项A", "第二组选项B", "第二组选项C", "第二组选项D"
|
||||
};
|
||||
|
||||
// 随机选择一组选项
|
||||
|
||||
static std::random_device rd;
|
||||
static std::mt19937 gen(rd());
|
||||
std::uniform_int_distribution<> dist(0, 1);
|
||||
@@ -136,9 +128,6 @@ static auto ComConfigComponent(ThemeManager& manager, auto&& callback) {
|
||||
new_options << QString::fromUtf8(option);
|
||||
}
|
||||
}
|
||||
qDebug() << new_options;
|
||||
|
||||
// 更新选项列表,MatSelect会自动刷新
|
||||
*select_baud_context = new_options;
|
||||
}},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user