29 lines
765 B
C++
29 lines
765 B
C++
#ifndef ALARMCALCPARATABLEDELEGATE_H
|
|
#define ALARMCALCPARATABLEDELEGATE_H
|
|
|
|
#include <QStyledItemDelegate>
|
|
#include <AlarmCalcParaTableModel.h>
|
|
|
|
|
|
class AlarmCalcParaTableDelegate : public QStyledItemDelegate
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
AlarmCalcParaTableDelegate(AlarmCalcParaTableModel *model, QObject *parent = 0);
|
|
|
|
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
|
bool editorEvent(QEvent *event, QAbstractItemModel *model,
|
|
const QStyleOptionViewItem &option, const QModelIndex &index) Q_DECL_OVERRIDE;
|
|
|
|
signals:
|
|
void sigViewUpdate();
|
|
|
|
void sigselectPoint(AlarmCalcInfoPtr info);
|
|
|
|
private:
|
|
AlarmCalcParaTableModel * m_pModel;
|
|
};
|
|
|
|
#endif // ALARMCALCPARATABLEDELEGATE_H
|