aboutsummaryrefslogtreecommitdiff
path: root/confui/ui_tab_automations.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'confui/ui_tab_automations.cpp')
-rw-r--r--confui/ui_tab_automations.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/confui/ui_tab_automations.cpp b/confui/ui_tab_automations.cpp
index 698b813..18b3073 100644
--- a/confui/ui_tab_automations.cpp
+++ b/confui/ui_tab_automations.cpp
@@ -29,6 +29,14 @@ CDAutomationsTabWidget::~CDAutomationsTabWidget() { }
CDAutomationsTabWidget::CDAutomationsTabWidget(CDMainWindow* main_window) : QWidget(main_window) {
this->mainwindow = main_window;
main_layout = new CDScrollContainerLayout(this);
+ automations = new QVBoxLayout;
+ new_automation_button = new CDAddAutomationWidget(this);
+
+ QWidget* automations_widget = new QWidget(this);
+ automations_widget->setLayout(automations);
+
+ main_layout->addWidget(automations_widget);
+ main_layout->addWidget(new_automation_button);
update();
setLayout(main_layout);
@@ -44,7 +52,7 @@ void CDAutomationsTabWidget::update() {
} else {
widgets[link.first] = new CDAutomationWidget(link.second, this);
}
- main_layout->addWidget(widgets[link.first]);
+ automations->addWidget(widgets[link.first]);
}
}