17 #ifndef QGSATTRIBUTETABLEFILTERMODEL_H 18 #define QGSATTRIBUTETABLEFILTERMODEL_H 20 #include <QSortFilterProxyModel> 21 #include <QModelIndex> 29 class QItemSelectionModel;
63 void setSelectedOnTop(
bool selectedOnTop );
124 virtual QModelIndex mapToMaster(
const QModelIndex &proxyIndex )
const;
126 virtual QModelIndex mapFromMaster(
const QModelIndex &sourceIndex )
const;
135 bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent )
const override;
141 void generateListOfVisibleFeatures();
147 bool lessThan(
const QModelIndex &left,
const QModelIndex &right )
const override;
156 virtual void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder )
override;
164 void extentsChanged();
167 void selectionChanged();
QSet< QgsFeatureId > QgsFeatureIds
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.
QgsVectorLayerCache * layerCache() const
Returns the layerCache this filter acts on.
This class caches features of a given QgsVectorLayer.
void sort(double *heap, int *x, int *y, int N)
QgsAttributeTableModel * masterModel() const
Returns the table model this filter is using.
Represents a vector layer which manages a vector based data sets.