#include <FilterHeaderView.hpp>
|
| | FilterHeaderView (Qt::Orientation orientation, QWidget *parent=nullptr) |
| |
| void | SetFilteredPredicate (std::function< bool(int)> isFiltered) |
| | Tells the header which columns currently carry a filter.
|
| |
| QRect | IndicatorRect (int logicalIndex) const |
| | Hit area of the filter button of logicalIndex, in viewport coordinates.
|
| |
Horizontal header that draws a small filter button at the right edge of every section (highlighted while that column has a value filter). Clicking the button emits FilterIndicatorClicked(); clicking anywhere else on the section keeps its normal behaviour (sort, drag, resize).
◆ FilterHeaderView()
| ui::qt::FilterHeaderView::FilterHeaderView |
( |
Qt::Orientation |
orientation, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ FilterIndicatorClicked
| void ui::qt::FilterHeaderView::FilterIndicatorClicked |
( |
int |
logicalIndex | ) |
|
|
signal |
◆ IndicatorRect()
| QRect ui::qt::FilterHeaderView::IndicatorRect |
( |
int |
logicalIndex | ) |
const |
Hit area of the filter button of logicalIndex, in viewport coordinates.
◆ mousePressEvent()
| void ui::qt::FilterHeaderView::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ mouseReleaseEvent()
| void ui::qt::FilterHeaderView::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ paintSection()
| void ui::qt::FilterHeaderView::paintSection |
( |
QPainter * |
painter, |
|
|
const QRect & |
rect, |
|
|
int |
logicalIndex |
|
) |
| const |
|
overrideprotected |
◆ SetFilteredPredicate()
| void ui::qt::FilterHeaderView::SetFilteredPredicate |
( |
std::function< bool(int)> |
isFiltered | ) |
|
Tells the header which columns currently carry a filter.
◆ m_isFiltered
| std::function<bool(int)> ui::qt::FilterHeaderView::m_isFiltered |
|
private |
◆ m_swallowRelease
| bool ui::qt::FilterHeaderView::m_swallowRelease {false} |
|
private |
The documentation for this class was generated from the following files: