mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-28 04:45:13 +00:00
Some more comments to iot-dashboard
This commit is contained in:
parent
73ddea74a8
commit
24bafdb2f9
3 changed files with 26 additions and 14 deletions
|
@ -87,6 +87,9 @@ void HumidityWidget::update_fake_humidity()
|
|||
int main()
|
||||
{
|
||||
DashboardBuilder builder;
|
||||
|
||||
// The widgets and their position is hardcoded for now, but one could imagine getting this
|
||||
// from a config file, and istentiating the widgets with a factory function
|
||||
builder.add_top_bar_widget(std::make_shared<ClockWidget>());
|
||||
builder.add_grid_widget(std::make_shared<PlaceholderWidget>("Usage"), { 0, 0, 2 });
|
||||
builder.add_grid_widget(std::make_shared<PlaceholderWidget>("IndoorTemperature"), { 0, 1 });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue