Necessary Qt-imports.
More...
#include <filter_menu_header.h>
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.
FilterMenuHeader::FilterMenuHeader |
( |
Qt::Orientation |
orientation, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
|
explicit |
The constructor for the FilterMenuHeader class
- Parameters
-
orientation | Orientation for the header |
parent | Which parent widget the header belongs to |
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
-
painter | The painter used to paint the section |
rect | The rectangle used as a box for the section |
logicalIndex | The section index to be painted |
void FilterMenuHeader::setChecked |
( |
bool |
checked | ) |
|
Method for checking and unchecking the first sections checkbox
- Parameters
-
checked | Set 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
-
checked | If true then the checkbox has been checked, false if unchecked. |
The documentation for this class was generated from the following files: