27 lines
630 B
C++
27 lines
630 B
C++
#pragma once
|
|
#include "DataOutputDefs.h"
|
|
#pragma execution_character_set("utf-8")
|
|
|
|
#include <QHeaderView>
|
|
class QCheckBox;
|
|
class DATAOUTPUT_EXPORT CheckHeadView : public QHeaderView
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
CheckHeadView(QVector<int> rCheckID,Qt::Orientation orientation, QWidget* parent = nullptr);
|
|
~CheckHeadView();
|
|
|
|
QCheckBox*
|
|
GetCheckBox(int nCol);
|
|
|
|
signals:
|
|
void SignalStatus(int nCol, bool bStatus);
|
|
protected:
|
|
void paintSection(QPainter* painter, const QRect& rect, int logicalIndex) const;
|
|
private slots:
|
|
void OnChecked();
|
|
private:
|
|
QVector<int> m_rCheckIDs;
|
|
QMap<int, QCheckBox*> m_rCheckBoxMap;
|
|
};
|