ch_widget.h 481 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef CH_WIDGET_H
  2. #define CH_WIDGET_H
  3. #include "common.h"
  4. #include <QWidget>
  5. namespace Ui {
  6. class ch_Widget;
  7. }
  8. class ch_Widget : public QWidget
  9. {
  10. Q_OBJECT
  11. public:
  12. explicit ch_Widget(QWidget *parent = nullptr);
  13. ~ch_Widget();
  14. void setDataCHP(int nIndex,PowerInfo* pdata);
  15. void UpdateData();
  16. protected:
  17. bool event(QEvent *event);
  18. private:
  19. Ui::ch_Widget *ui;
  20. int m_nIndex;
  21. PowerInfo* m_pCHData;
  22. int nStatus=0;
  23. };
  24. #endif // CH_WIDGET_H