logplus/DataMgr/src/CheckHeadView.h

25 lines
567 B
C
Raw Normal View History

2026-05-15 09:36:23 +08:00
#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;
};