GraphTool  1.0
Tool for analyzing and graphically visualizing code dependencies for Ericsson.
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
Signals | Public Member Functions | Protected Member Functions | List of all members
FilterMenuHeader Class Reference

Necessary Qt-imports. More...

#include <filter_menu_header.h>

Inheritance diagram for FilterMenuHeader:
Inheritance graph
[legend]
Collaboration diagram for FilterMenuHeader:
Collaboration graph
[legend]

Signals

void toggled (bool checked)
 

Public Member Functions

 FilterMenuHeader (Qt::Orientation orientation, QWidget *parent=0)
 
void setChecked (bool checked)
 

Protected Member Functions

void paintSection (QPainter *painter, const QRect &rect, int logicalIndex) const
 
void mousePressEvent (QMouseEvent *event)
 

Detailed Description

Necessary Qt-imports.

A custom header for the filter menu which inherits QHeaderView. This custom header has three sections: One which is holds a checkbox for enabling/disabling all the filters which the filter menu holds, and two sections for filter name and filter type.

Constructor & Destructor Documentation

FilterMenuHeader::FilterMenuHeader ( Qt::Orientation  orientation,
QWidget *  parent = 0 
)
explicit

The constructor for the FilterMenuHeader class

Parameters
orientationOrientation for the header
parentWhich parent widget the header belongs to

Member Function Documentation

void FilterMenuHeader::mousePressEvent ( QMouseEvent *  event)
protected

Overriden slot for the mousePressEvent on the checkbox The event that triggered the signal that was directed to this slot

void FilterMenuHeader::paintSection ( QPainter *  painter,
const QRect &  rect,
int  logicalIndex 
) const
protected

This method overrides the paintSection method from inherited the QHeaderView.

Parameters
painterThe painter used to paint the section
rectThe rectangle used as a box for the section
logicalIndexThe section index to be painted
void FilterMenuHeader::setChecked ( bool  checked)

Method for checking and unchecking the first sections checkbox

Parameters
checkedSet to true to check the checkbox, false to uncheck it
void FilterMenuHeader::toggled ( bool  checked)
signal

This signal is emitted to the FilterMenu when the checkbox is checked or unchedked

Parameters
checkedIf true then the checkbox has been checked, false if unchecked.

The documentation for this class was generated from the following files: