Allows for filtering QgsComposerAttributeTable columns by columns which are sorted or unsorted.
More...
#include <qgscomposerattributetablemodel.h>
Protected Member Functions |
bool | filterAcceptsRow (int source_row, const QModelIndex &source_parent) const |
Detailed Description
Allows for filtering QgsComposerAttributeTable columns by columns which are sorted or unsorted.
Member Enumeration Documentation
Controls whether the proxy model shows sorted or unsorted columns
- Enumerator:
ShowSortedColumns |
show only sorted columns
|
ShowUnsortedColumns |
show only unsorted columns
|
Constructor & Destructor Documentation
QgsComposerTableSortColumnsProxyModel::~QgsComposerTableSortColumnsProxyModel |
( |
| ) |
|
|
virtual |
Member Function Documentation
int QgsComposerTableSortColumnsProxyModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
QgsComposerTableColumn * QgsComposerTableSortColumnsProxyModel::columnFromIndex |
( |
const QModelIndex & |
index | ) |
const |
QgsComposerTableColumn * QgsComposerTableSortColumnsProxyModel::columnFromSourceIndex |
( |
const QModelIndex & |
sourceIndex | ) |
const |
QVariant QgsComposerTableSortColumnsProxyModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
virtual |
bool QgsComposerTableSortColumnsProxyModel::filterAcceptsRow |
( |
int |
source_row, |
|
|
const QModelIndex & |
source_parent |
|
) |
| const |
|
protected |
Qt::ItemFlags QgsComposerTableSortColumnsProxyModel::flags |
( |
const QModelIndex & |
index | ) |
const |
QVariant QgsComposerTableSortColumnsProxyModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
bool QgsComposerTableSortColumnsProxyModel::lessThan |
( |
const QModelIndex & |
left, |
|
|
const QModelIndex & |
right |
|
) |
| const |
void QgsComposerTableSortColumnsProxyModel::resetFilter |
( |
| ) |
|
Invalidates the current filter used by the proxy model.
- Note
- added in 2.3
bool QgsComposerTableSortColumnsProxyModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following files: