| 123456789101112131415161718192021222324252627282930313233343536373839 |
- #ifndef THRESHOLDLISTWIDGET_H
- #define THRESHOLDLISTWIDGET_H
- #include <QWidget>
- #include "common.h"
- namespace Ui {
- class ThresholdListWidget;
- }
- class ThresholdListWidget : public QWidget
- {
- Q_OBJECT
- public:
- explicit ThresholdListWidget(QWidget *parent = nullptr);
- ~ThresholdListWidget();
- //刷新
- void UpdateTreshold();
- //读取数据库内容
- void ReadSqlData();
- //更新表数据
- void updateTablewidget();
- private:
- //初始化UI
- void InitUI();
- //添加一行 返回行ID
- int AddRowData(int nChID,QString strName,GlobalOverManager*pData);
- //清空表数据
- void ClearList();
- void checkThresholds(int nRow,PowerWarningInfo* pWarning);
- private:
- Ui::ThresholdListWidget *ui;
- };
- #endif // THRESHOLDLISTWIDGET_H
|