aboutsummaryrefslogtreecommitdiff
path: root/confui/ui_automation.h
diff options
context:
space:
mode:
Diffstat (limited to 'confui/ui_automation.h')
-rw-r--r--confui/ui_automation.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/confui/ui_automation.h b/confui/ui_automation.h
index 7ea4cbb..e4118dc 100644
--- a/confui/ui_automation.h
+++ b/confui/ui_automation.h
@@ -8,12 +8,14 @@
#include "mesh_connector.h"
+class CDAutomationsTabWidget;
class CDAutomationWidget : public QWidget {
Q_OBJECT
private:
cd_s_automation* _automation = nullptr;
cd_link_t _id;
+ CDAutomationsTabWidget* _parent = nullptr;
QHBoxLayout* main_layout;
QComboBox* dropdown_button;
@@ -27,7 +29,7 @@ public:
/** @brief redraw ui with new values */
virtual void update();
/** @brief register automation that this widget controls */
- virtual void set_automation(cd_link_t link, cd_s_automation* automation);
+ virtual void set_automation(cd_link_t link);
/** @brief test if all fields are valid / entered */
virtual bool conf_valid();
/** @brief apply new automation rule */