16 #ifndef QGSFIELDPROXYMODEL_H 17 #define QGSFIELDPROXYMODEL_H 19 #include <QSortFilterProxyModel> 21 #include "qgis_core.h" 45 Numeric = Int | LongLong | Double,
49 AllTypes = Numeric | Date | String | Time,
51 Q_DECLARE_FLAGS( Filters,
Filter )
74 const Filters &
filters()
const {
return mFilters; }
81 bool isReadOnly(
const QModelIndex &index )
const;
85 bool filterAcceptsRow(
int source_row,
const QModelIndex &source_parent )
const override;
86 bool lessThan(
const QModelIndex &left,
const QModelIndex &right )
const override;
89 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsFieldProxyModel::Filters )
91 #endif // QGSFIELDPROXYMODEL_H const Filters & filters() const
Returns the filters controlling displayed fields.
The QgsFieldModel class is a model to display the list of fields of a layer in widgets.
The QgsFieldProxyModel class provides an easy to use model to display the list of fields of a layer...
Filter
Field type filters.