aboutsummaryrefslogtreecommitdiff
path: root/confui/ui_tab_node_overview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'confui/ui_tab_node_overview.cpp')
-rw-r--r--confui/ui_tab_node_overview.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/confui/ui_tab_node_overview.cpp b/confui/ui_tab_node_overview.cpp
index 7b6c53a..ff1df4b 100644
--- a/confui/ui_tab_node_overview.cpp
+++ b/confui/ui_tab_node_overview.cpp
@@ -1,25 +1,25 @@
-#include <QWidget>
#include <QLabel>
-#include <QVBoxLayout>
#include <QScrollArea>
+#include <QVBoxLayout>
+#include <QWidget>
#include "ui_tab_node_overview.h"
using std::pair;
-CDNodeOverviewTabWidget::~CDNodeOverviewTabWidget() { }
-CDNodeOverviewTabWidget::CDNodeOverviewTabWidget(CDMainWindow* main_window) : QWidget(main_window) {
+CDNodeOverviewTabWidget::~CDNodeOverviewTabWidget() {}
+CDNodeOverviewTabWidget::CDNodeOverviewTabWidget(CDMainWindow *main_window) : QWidget(main_window) {
this->mainwindow = main_window;
- main_layout = new CDScrollContainerLayout(this);
+ main_layout = new CDScrollContainerLayout(this);
update();
setLayout(main_layout);
}
void CDNodeOverviewTabWidget::update() {
- map<cd_uid_t, cd_s_node*> nodes = g_cd_mesh_connector->get_nodes(false);
+ map<cd_uid_t, cd_s_node *> nodes = g_cd_mesh_connector->get_nodes(false);
- for (pair<cd_uid_t, cd_s_node*> node : nodes) {
+ for (pair<cd_uid_t, cd_s_node *> node : nodes) {
if (node_widgets.count(node.first) == 0) {
node_widgets[node.first] = new CDNodeWidget(this); // create new node widget
node_widgets[node.first]->set_node(node.first);
@@ -29,7 +29,7 @@ void CDNodeOverviewTabWidget::update() {
node_widgets[node.first]->update(); // update existing widget
} else if (node_widgets[node.first] != nullptr) {
main_layout->removeWidget(node_widgets[node.first]); // remove removed automation
- delete node_widgets[node.first]; // free automation widget
+ delete node_widgets[node.first]; // free automation widget
node_widgets[node.first] = nullptr;
}
}