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;
The QgsFieldModel class is a model to display the list of fields in widgets (optionally associated wi...
The QgsFieldProxyModel class provides an easy to use model to display the list of fields of a layer.
const Filters & filters() const
Returns the filters controlling displayed fields.
Filter
Field type filters.
QgsFieldModel * sourceFieldModel()
Returns the QgsFieldModel used in this QSortFilterProxyModel.
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsField::ConfigurationFlags) CORE_EXPORT QDataStream &operator<<(QDataStream &out
Writes the field to stream out. QGIS version compatibility is not guaranteed.