39 lines
701 B
C++
39 lines
701 B
C++
#ifndef REALTIMEALARM_H
|
|
#define REALTIMEALARM_H
|
|
|
|
#include <QWidget>
|
|
#include <QStandardItemModel> //数据模型类
|
|
#include "TableHeaderView.h"
|
|
#include "global.h"
|
|
|
|
namespace Ui {
|
|
class CRealTimeAlarm;
|
|
}
|
|
|
|
class CRealTimeAlarm : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CRealTimeAlarm(QWidget *parent = nullptr);
|
|
~CRealTimeAlarm();
|
|
|
|
private slots:
|
|
void Details(const QModelIndex &index);
|
|
|
|
private:
|
|
Ui::CRealTimeAlarm *ui;
|
|
|
|
TableHeaderView *myHeader;
|
|
QStandardItemModel *model;
|
|
QString headerStr ;
|
|
|
|
QVector<TriggerEvent_t> m_vecTriggerEvent;
|
|
|
|
void initTable();
|
|
void createRowItem(int Row,QVariantList RowItem);
|
|
|
|
};
|
|
|
|
#endif // REALTIMEALARM_H
|