32 #ifndef pqHeaderView_h 33 #define pqHeaderView_h 36 #include <QHeaderView> 64 typedef QHeaderView Superclass;
65 Q_PROPERTY(
bool showCustomIndicator READ isCustomIndicatorShown WRITE setCustomIndicatorShown);
68 pqHeaderView(Qt::Orientation orientation, QWidget* parent =
nullptr);
93 void setCustomIndicatorShown(
bool val);
104 void addCustomIndicatorIcon(
const QIcon& icon,
const QString& role);
105 void removeCustomIndicatorIcon(
const QString& role);
106 QIcon customIndicatorIcon(
const QString& role)
const;
118 void customIndicatorClicked(
int section,
const QPoint& pt,
const QString& role);
121 void paintSection(QPainter* painter,
const QRect& rect,
int logicalIndex)
const override;
122 void mousePressEvent(QMouseEvent* event)
override;
123 void mouseReleaseEvent(QMouseEvent* event)
override;
128 void mouseClickEvent(QMouseEvent* event);
130 bool ToggleCheckStateOnSectionClick;
131 QPoint PressPosition;
132 mutable QRect CheckRect;
134 bool CustomIndicatorShown;
137 std::vector<std::pair<QIcon, QString> > CustomIndicatorIcons;
138 mutable std::vector<std::pair<QRect, QString> > CustomIndicatorRects;