GraphTool  1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
filter_menu_header.h
1 #ifndef FILTER_MENU_HEADER_H_
2 #define FILTER_MENU_HEADER_H_
3 
5 #include <QHeaderView>
6 #include <QPainter>
7 #include <QMouseEvent>
8 #include <QPalette>
9 
16 class FilterMenuHeader : public QHeaderView {
17  Q_OBJECT
18  public:
24  explicit FilterMenuHeader(Qt::Orientation orientation, QWidget *parent = 0);
25 
30  void setChecked(bool checked);
31 
32  private:
38  QRect checkBoxRect(const QRect &sourceRect) const;
39 
40  // Variable to store if the checkbox is checked or not
41  bool m_isOn;
42 
43  protected:
50  void paintSection(QPainter *painter, const QRect &rect, int logicalIndex) const;
51 
56  void mousePressEvent(QMouseEvent *event);
57 
58  signals:
63  void toggled(bool checked);
64 };
65 
66 
67 #endif
68 
void paintSection(QPainter *painter, const QRect &rect, int logicalIndex) const
Definition: filter_menu_header.cc:19
Necessary Qt-imports.
Definition: filter_menu_header.h:16
void toggled(bool checked)
void setChecked(bool checked)
Definition: filter_menu_header.cc:9
void mousePressEvent(QMouseEvent *event)
Definition: filter_menu_header.cc:53
FilterMenuHeader(Qt::Orientation orientation, QWidget *parent=0)
Definition: filter_menu_header.cc:3