blob: 466e5b2cad4b23aedca2d50a06253320e34ea8ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 = true,
.provisioned = true,
};
CDNodeWidget* nd_w = new CDNodeWidget(&n, this);
main_layout->addWidget(nd_w);
setLayout(main_layout);
}
|