aboutsummaryrefslogtreecommitdiff
path: root/confui/mainwindow.cpp
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-12-09 15:47:27 +0100
committerlonkaars <loek@pipeframe.xyz>2022-12-09 15:47:27 +0100
commit1d1799da8880b19aac0dbd2975facf97138bab61 (patch)
tree4b05c2e4d61782d5da1499435df32c9142dc38af /confui/mainwindow.cpp
parent7db6cde62ee6df76df798f108b747398de8ab26b (diff)
refactor mesh connector and fix duplicate list entries on refresh
Diffstat (limited to 'confui/mainwindow.cpp')
-rw-r--r--confui/mainwindow.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/confui/mainwindow.cpp b/confui/mainwindow.cpp
index 1f3e333..bc2adee 100644
--- a/confui/mainwindow.cpp
+++ b/confui/mainwindow.cpp
@@ -20,11 +20,11 @@ CDMainWindow::CDMainWindow(QWidget *parent) : QMainWindow(parent) {
QTabWidget* tab_bar_widget = new QTabWidget(this);
- automations_widget = new CDAutomationsTabWidget(this);
- node_overview_widget = new CDNodeOverviewTabWidget(this);
+ automations_tab = new CDAutomationsTabWidget(this);
+ node_overview_tab = new CDNodeOverviewTabWidget(this);
- tab_bar_widget->addTab(this->node_overview_widget, "node overview");
- tab_bar_widget->addTab(this->automations_widget, "automations");
+ tab_bar_widget->addTab(this->node_overview_tab, "node overview");
+ tab_bar_widget->addTab(this->automations_tab, "automations");
setMenuBar(menu_bar);
setCentralWidget(tab_bar_widget);
@@ -32,6 +32,10 @@ CDMainWindow::CDMainWindow(QWidget *parent) : QMainWindow(parent) {
}
void CDMainWindow::update() {
+ // update tabs (children widgets)
+ automations_tab->update();
+ node_overview_tab->update();
+
setWindowTitle("confui");
menu_bar->clear();