完成热力图部分,取消边框,背景透明
This commit is contained in:
@@ -44,6 +44,8 @@ static auto ComConfigComponent(ThemeManager& manager, auto&& callback) {
|
||||
auto select_baud_context = std::make_shared<MutableValue<QStringList>>();
|
||||
select_baud_context->set_silent(QStringList {"9600", "115200"});
|
||||
|
||||
|
||||
|
||||
const auto row = new Row {
|
||||
// lnpro::Item<FilledTextField> {
|
||||
// text_field::pro::ThemeManager {manager},
|
||||
@@ -148,11 +150,22 @@ static auto ComConfigComponent(ThemeManager& manager, auto&& callback) {
|
||||
}
|
||||
|
||||
static auto DisplayComponent(ThemeManager& manager, int index = 0) noexcept {
|
||||
auto heatmap_context = std::make_shared<MutableValue<QVector<PointData>>>();
|
||||
heatmap_context->set_silent(QVector<PointData>{
|
||||
PointData{0, 0, 1}, PointData{1, 0, 2}, PointData{2, 0, 3},
|
||||
PointData{0, 1, 3}, PointData{1, 1, 4}, PointData{2, 1, 5},
|
||||
PointData{0, 2, 6}, PointData{1, 2, 7}, PointData{2, 2, 8},
|
||||
PointData{0, 3, 9}, PointData{1, 3, 10}, PointData{2, 3, 11},
|
||||
});
|
||||
const auto row = new Row{
|
||||
lnpro::Item<HeatMapPlot> {
|
||||
plot_widget::pro::SizePolicy {
|
||||
QSizePolicy::Expanding,
|
||||
},
|
||||
MutableForward {
|
||||
plot_widget::pro::PlotData {},
|
||||
heatmap_context,
|
||||
},
|
||||
pwpro::MatrixSize {
|
||||
QSize{3, 4}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user