|
| QgsAttributeTableFilterModel (QgsMapCanvas *canvas, QgsAttributeTableModel *sourceModel, QObject *parent=nullptr) |
| Make sure, the master model is already loaded, so the selection will get synchronized. More...
|
|
int | actionColumnIndex () const |
| Gets the index of the first column that contains an action widget. More...
|
|
int | columnCount (const QModelIndex &parent) const override |
|
void | connectFilterModeConnections (FilterMode filterMode) |
| Disconnect the connections set for the new filterMode. More...
|
|
QVariant | data (const QModelIndex &index, int role) const override |
|
void | disconnectFilterModeConnections () |
| Disconnect the connections set for the current filterMode. More...
|
|
QModelIndex | fidToIndex (QgsFeatureId fid) override |
|
QModelIndexList | fidToIndexList (QgsFeatureId fid) |
|
QgsFeatureIds | filteredFeatures () |
| Gets a list of currently filtered feature ids. More...
|
|
QString | filterExpression () const |
| Returns the stored filter expression string. More...
|
|
FilterMode | filterMode () |
| The current filterModel. More...
|
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
|
QgsVectorLayer * | layer () const |
| Returns the layer this filter acts on. More...
|
|
QgsVectorLayerCache * | layerCache () const |
| Returns the layerCache this filter acts on. More...
|
|
QgsMapCanvas * | mapCanvas () const |
| Returns the map canvas. More...
|
|
QModelIndex | mapFromMaster (const QModelIndex &sourceIndex) const |
|
QModelIndex | mapFromSource (const QModelIndex &sourceIndex) const override |
|
QModelIndex | mapToMaster (const QModelIndex &proxyIndex) const |
|
QModelIndex | mapToSource (const QModelIndex &proxyIndex) const override |
|
QgsAttributeTableModel * | masterModel () const |
| Returns the table model this filter is using. More...
|
|
QgsFeatureId | rowToId (const QModelIndex &row) |
| Returns the feature id for a given model index. More...
|
|
bool | selectedOnTop () |
| Returns if selected features are currently shown on top. More...
|
|
void | setAttributeTableConfig (const QgsAttributeTableConfig &config, bool force=false) |
| Set the attribute table configuration to control which fields are shown, in which order they are shown as well as if and where an action column is shown. More...
|
|
virtual void | setFilteredFeatures (const QgsFeatureIds &ids) |
| Specify a list of features, which the filter will accept. More...
|
|
void | setFilterExpression (const QgsExpression &expression, const QgsExpressionContext &context) |
| Set the expression and the context to be stored in case of the features need to be filtered again (like on filter or on main model data change). More...
|
|
void | setFilterMode (FilterMode filterMode) |
| Set the filter mode the filter will use. More...
|
|
void | setSelectedOnTop (bool selectedOnTop) |
| Changes the sort order of the features. More...
|
|
void | setSourceModel (QgsAttributeTableModel *sourceModel) |
| Set the attribute table model that backs this model. More...
|
|
void | sort (const QString &expression, Qt::SortOrder order=Qt::AscendingOrder) |
| Sort by the given expression using the given order. More...
|
|
void | sort (int column, Qt::SortOrder order=Qt::AscendingOrder) override |
| Sort by the given column using the given order. More...
|
|
QString | sortExpression () const |
| The expression which is used to sort the attribute table. More...
|
|
virtual | ~QgsFeatureModel ()=default |
|
virtual QModelIndex | fidToIndex (QgsFeatureId fid)=0 |
|