#ifndef CONTROLPOWERWIDGET_H #define CONTROLPOWERWIDGET_H #include #include #include #include "QStackedWidget" #include namespace Ui { class ControlPowerWidget; } class ControlPowerWidget : public QWidget { Q_OBJECT public: explicit ControlPowerWidget(QWidget *parent = nullptr,QList *m_pLedlist=nullptr); ~ControlPowerWidget(); protected slots: void refreshLable(); void OnGetPowerModeType(bool b); private: void init(); private: Ui::ControlPowerWidget *ui; ControlPowerManual *m_pManual=nullptr; ControlPowerSchedule *m_pSchedule=nullptr; QStackedWidget *m_pStackedW; QButtonGroup *m_buttonGroup; QList *m_pLedlist=nullptr; }; #endif // CONTROLPOWERWIDGET_H