The QgsFieldProxyModel class provides an easy to use model to display the list of fields of a layer.
More...
#include <qgsfieldproxymodel.h>
Detailed Description
The QgsFieldProxyModel class provides an easy to use model to display the list of fields of a layer.
- Note
- added in 2.3
Member Enumeration Documentation
- Enumerator:
String |
|
Int |
|
LongLong |
|
Double |
|
Numeric |
|
Date |
|
All |
|
Constructor & Destructor Documentation
QgsFieldProxyModel::QgsFieldProxyModel |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
QgsFieldProxModel creates a proxy model with a QgsFieldModel as source model.
It can be used to filter the fields based on their types.
Member Function Documentation
bool QgsFieldProxyModel::filterAcceptsRow |
( |
int |
source_row, |
|
|
const QModelIndex & |
source_parent |
|
) |
| const |
const Filters& QgsFieldProxyModel::filters |
( |
| ) |
const |
|
inline |
bool QgsFieldProxyModel::lessThan |
( |
const QModelIndex & |
left, |
|
|
const QModelIndex & |
right |
|
) |
| const |
setFilters set flags that affect how fields are filtered
- Parameters
-
- Note
- added in 2.3
sourceFieldModel returns the QgsFieldModel used in this QSortFilterProxyModel
The documentation for this class was generated from the following files: