16 #ifndef QGSFIELDPROXYMODEL_H 17 #define QGSFIELDPROXYMODEL_H 19 #include <QSortFilterProxyModel> 41 Numeric = Int | LongLong | Double,
45 All = Numeric | Date | String | Time,
47 Q_DECLARE_FLAGS( Filters,
Filter )
68 const Filters&
filters()
const {
return mFilters; }
83 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsFieldProxyModel::Filters )
85 #endif // QGSFIELDPROXYMODEL_H virtual bool lessThan(const QModelIndex &left, const QModelIndex &right) const
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.
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const