diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-12-09 17:02:38 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-12-09 17:02:38 +0100 |
commit | 9c3224b0474675195b53b4d58b27a854f405c3f4 (patch) | |
tree | 85cbbaeb1ec9167fee0b9e72bcad5ec3946f336e /confui/ui_automation.h | |
parent | 2eadbbd85105ad1199c43c72f551ddd69538e994 (diff) |
automation widget updates automation
Diffstat (limited to 'confui/ui_automation.h')
-rw-r--r-- | confui/ui_automation.h | 4 |
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 */ |