diff options
Diffstat (limited to 'confui/ui_node_overview.cpp')
-rw-r--r-- | confui/ui_node_overview.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/confui/ui_node_overview.cpp b/confui/ui_node_overview.cpp index eb6f976..3e63ddd 100644 --- a/confui/ui_node_overview.cpp +++ b/confui/ui_node_overview.cpp @@ -1,9 +1,28 @@ #include <QWidget> #include <QLabel> +#include <QVBoxLayout> #include "ui_node_overview.h" +#include "ui_node.h" CDNodeOverviewWidget::~CDNodeOverviewWidget() { } CDNodeOverviewWidget::CDNodeOverviewWidget(CDMainWindow* main_window) : QWidget(main_window) { this->mainwindow = main_window; + + QVBoxLayout* main_layout = new QVBoxLayout; + + const char* n_name = "berta"; + cd_s_node n = { + .address = { 0x00, 0xff, 0x21, 0x69, 0xf2, 0x31 }, + .name_len = strlen(n_name), + .name = n_name, + .light_on = false, + .provisioned = false, + }; + + CDNodeWidget* nd_w = new CDNodeWidget(&n, this); + + main_layout->addWidget(nd_w); + + setLayout(main_layout); } |