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