| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #ifndef CH_WIDGET_H
- #define CH_WIDGET_H
- #include <QWidget>
- #include "pdu_ctrl.h"
- namespace Ui {
- class ch_Widget;
- }
- class ch_Widget : public QWidget
- {
- Q_OBJECT
- public:
- explicit ch_Widget(QWidget *parent = nullptr);
- ~ch_Widget();
- void setDataCHP(int nIndex,PowerInfo* pdata,PowerWarningInfo* pWarn);
- void UpdateData();
- public:
- //void mousePressEvent(QMouseEvent *event) override;
- void mouseDoubleClickEvent(QMouseEvent *event) override;
- //void mouseMoveEvent(QMouseEvent *event) override;
- signals:
- void singal_DoubleClick(int CHID);
- protected:
- bool event(QEvent *event);
- private:
- Ui::ch_Widget *ui;
- int m_nIndex;
- PowerInfo* m_pCHData;
- PowerWarningInfo* m_pChWarning;
- int nStatus=0;
- QTime pTimeLastset;
- };
- #endif // CH_WIDGET_H
|