17 #ifndef QGSATTRIBUTETABLEFILTERMODEL_H 18 #define QGSATTRIBUTETABLEFILTERMODEL_H 20 #include <QSortFilterProxyModel> 21 #include <QModelIndex> 70 void setSelectedOnTop(
bool selectedOnTop );
152 virtual void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder )
override;
170 void generateListOfVisibleFeatures();
184 void extentsChanged();
187 void selectionChanged();
virtual bool lessThan(const QModelIndex &left, const QModelIndex &right) const
QgsMapCanvas * mapCanvas() const
Returns the map canvas.
virtual void sort(int column, Qt::SortOrder order)
virtual void setSourceModel(QAbstractItemModel *sourceModel)
A model backed by a QgsVectorLayerCache which is able to provide feature/attribute information to a Q...
Map canvas is a class for displaying all GIS data types on a canvas.
virtual QModelIndex fidToIndex(QgsFeatureId fid)=0
QgsVectorLayer * layer() const
Returns the layer this filter acts on.
FilterMode filterMode()
The current filterModel.
QgsVectorLayerCache * layerCache() const
Returns the layerCache this filter acts on.
This class caches features of a given QgsVectorLayer.
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
QgsAttributeTableModel * masterModel() const
Returns the table model this filter is using.
Represents a vector layer which manages a vector based data sets.