22 explicit CCheckBoxHeader(Qt::Orientation orientation, QWidget *parent =
nullptr);
28 void SetCheckable(
int index,
bool checkable, Qt::CheckState state = Qt::Unchecked);
29 bool isCheckable(
int index)
const;
35 Qt::CheckState GetCheckState(
int index)
const;
38 void sigCheckStateChanged(
int index, Qt::CheckState state);
41 void paintSection(QPainter *painter,
const QRect &rect,
int logicalIndex)
const override;
42 void mousePressEvent(QMouseEvent *event)
override;
45 QRect CheckboxRect(
const QRect §ionRect)
const;
46 void DrawText(QPainter* painter,
const QRect& rect,
47 const QString& text, Qt::Alignment alignment)
const;
48 void DrawCheckBox(QPainter* painter,
const QRect& rect,
49 Qt::CheckState state,
bool enabled)
const;
51 QHash<int, Qt::CheckState> m_CheckableSections;