16 #ifndef QGSFIELDPROXYMODEL_H 17 #define QGSFIELDPROXYMODEL_H 19 #include <QSortFilterProxyModel> 21 #include "qgis_core.h" 45 Numeric = Int | LongLong | Double,
50 AllTypes = Numeric | Date | String | Time,
52 Q_DECLARE_FLAGS( Filters,
Filter )
75 const Filters &
filters()
const {
return mFilters; }
82 bool isReadOnly(
const QModelIndex &index )
const;
86 bool filterAcceptsRow(
int source_row,
const QModelIndex &source_parent )
const override;
87 bool lessThan(
const QModelIndex &left,
const QModelIndex &right )
const override;
90 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsFieldProxyModel::Filters )
92 #endif // QGSFIELDPROXYMODEL_H QgsFieldModel * sourceFieldModel()
Returns the QgsFieldModel used in this QSortFilterProxyModel.
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.
const Filters & filters() const
Returns the filters controlling displayed fields.