logplus/DataMgr/src/CheckHeadView.h
2025-10-30 09:50:15 +08:00

25 lines
543 B
C++

#pragma once
#include <QHeaderView>
class QCheckBox;
class 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;
};