36 typedef QHeaderView Superclass;
37 Q_PROPERTY(
bool showCustomIndicator READ isCustomIndicatorShown WRITE setCustomIndicatorShown);
40 pqHeaderView(Qt::Orientation orientation, QWidget* parent =
nullptr);
65 void setCustomIndicatorShown(
bool val);
76 void addCustomIndicatorIcon(
const QIcon& icon,
const QString& role);
77 void removeCustomIndicatorIcon(
const QString& role);
78 QIcon customIndicatorIcon(
const QString& role)
const;
90 void customIndicatorClicked(
int section,
const QPoint& pt,
const QString& role);
93 void paintSection(QPainter* painter,
const QRect& rect,
int logicalIndex)
const override;
94 void mousePressEvent(QMouseEvent* event)
override;
95 void mouseReleaseEvent(QMouseEvent* event)
override;
101 bool mouseClickEvent(QMouseEvent* event);
103 bool ToggleCheckStateOnSectionClick;
104 QPoint PressPosition;
105 mutable QRect CheckRect;
107 bool CustomIndicatorShown;
110 std::vector<std::pair<QIcon, QString>> CustomIndicatorIcons;
111 mutable std::vector<std::pair<QRect, QString>> CustomIndicatorRects;