23class QContextMenuEvent;
31 explicit HeaderView(QAbstractItemView* parent);
33 void setDefaultSectionSizes(
const QList<double> &sizes);
34 QList<double> defaultSectionSizes()
const;
36 bool restoreState(
const QByteArray &
state);
39 void toggleSectionVisibility();
42 void showEvent(QShowEvent* event)
override;
43 void contextMenuEvent(QContextMenuEvent* event)
override;
45 QAbstractItemView* m_parent =
nullptr;
46 QMenu* m_menu =
nullptr;
49 QList<double> m_sectionSizes;
50 QByteArray m_restoreData;