36 virtual void setModel(QAbstractItemModel* model)
override;
43 int logicalIndex)
const override;
47 void on_sectionResized(
int logicalIndex);
50 QStyleOptionHeader GetStyleOptionForCell(
int logicalIndex)
const;
51 QModelIndex GetChildIndex(
int sectionIndex)
const;
53 const QModelIndex& childIndex,
54 const QHeaderView* headerViewPtr,
55 QStyleOptionHeader styleOptions)
const;
56 void PaintHorizontalSection(
58 const QRect& sectionRect,
59 int logicalChildIndex,
60 const QHeaderView* headerViewPtr,
61 const QStyleOptionHeader& styleOptions,
62 const QModelIndex& childIndex)
const;
63 void PaintVerticalSection(
65 const QRect& sectionRect,
66 int logicalChildIndex,
67 const QHeaderView* headerViewPtr,
68 const QStyleOptionHeader& styleOptions,
69 const QModelIndex& childIndex)
const;
70 QModelIndexList GetChilds(
const QModelIndex& searchedIndex)
const;
71 QModelIndexList SearchChilds(
const QModelIndex& curentIndex)
const;
72 QModelIndex FindRootIndex(QModelIndex index)
const;
73 QModelIndexList GetParentIndexes(QModelIndex index)
const;
74 QModelIndex FindChild(
const QModelIndex& curentIndex,
int sectionIndex,
int& curentChildIndex)
const;
75 void SetForegroundBrush(QStyleOptionHeader& opt,
const QModelIndex& index)
const;
76 void SetBackgroundBrush(QStyleOptionHeader& opt,
const QModelIndex& index)
const;
77 int GetCurrentCellWidth(
78 const QModelIndex& searchedIndex,
79 const QModelIndex& childIndex,
81 const QHeaderView* headerViewPtr)
const;
82 int GetCurrentCellLeft(
83 const QModelIndex& searchedIndex,
84 const QModelIndex& childIndex,
87 const QHeaderView* headerViewPtr)
const;
88 int PaintHorizontalCell(
90 const QHeaderView* headerViewPtr,
91 const QModelIndex& cellIndex,
92 const QModelIndex& childIndex,
93 int logicalChildIndex,
94 const QStyleOptionHeader& styleOptions,
95 const QRect& sectionRect,
97 int PaintVerticalCell(
99 const QHeaderView* headerViewPtr,
100 const QModelIndex& cellIndex,
101 const QModelIndex& childIndex,
102 int logicalChildIndex,
103 const QStyleOptionHeader& styleOptions,
104 const QRect& sectionRect,