GraphTool
1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Pages
src
gui
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
FilterMenuHeader::paintSection
void paintSection(QPainter *painter, const QRect &rect, int logicalIndex) const
Definition:
filter_menu_header.cc:19
FilterMenuHeader
Necessary Qt-imports.
Definition:
filter_menu_header.h:16
FilterMenuHeader::toggled
void toggled(bool checked)
FilterMenuHeader::setChecked
void setChecked(bool checked)
Definition:
filter_menu_header.cc:9
FilterMenuHeader::mousePressEvent
void mousePressEvent(QMouseEvent *event)
Definition:
filter_menu_header.cc:53
FilterMenuHeader::FilterMenuHeader
FilterMenuHeader(Qt::Orientation orientation, QWidget *parent=0)
Definition:
filter_menu_header.cc:3
Generated on Sun Jun 1 2014 21:59:10 for GraphTool by
1.8.6