|
| QgsAttributeTableModel (QgsVectorLayerCache *layerCache, QObject *parent=nullptr) |
| Constructor. More...
|
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| Returns the number of columns. More...
|
|
QVariant | data (const QModelIndex &index, int role) const override |
| Returns data on the given index. More...
|
|
const QgsAttributeEditorContext & | editorContext () const |
| Returns the context in which this table is shown. More...
|
|
void | executeAction (QUuid action, const QModelIndex &idx) const |
| Execute an action. More...
|
|
void | executeMapLayerAction (QgsMapLayerAction *action, const QModelIndex &idx) const |
| Execute a QgsMapLayerAction. More...
|
|
int | extraColumns () const |
| Empty extra columns to announce from this model. More...
|
|
QgsFeature | feature (const QModelIndex &idx) const |
| Returns the feature attributes at given model index. More...
|
|
int | fieldCol (int idx) const |
| Gets column from field index. More...
|
|
int | fieldIdx (int col) const |
| Gets field index from column. More...
|
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
| Returns item flags for the index. More...
|
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| Returns header data. More...
|
|
QModelIndex | idToIndex (QgsFeatureId id) const |
|
QModelIndexList | idToIndexList (QgsFeatureId id) const |
|
int | idToRow (QgsFeatureId id) const |
| Maps feature id to table row. More...
|
|
QgsVectorLayer * | layer () const |
| Returns the layer this model uses as backend. More...
|
|
QgsVectorLayerCache * | layerCache () const |
| Returns the layer cache this model uses as backend. More...
|
|
void | prefetchColumnData (int column) |
| Caches the entire data for one column. More...
|
|
void | prefetchSortData (const QString &expression, unsigned long cacheIndex=0) |
| Prefetches the entire data for an expression. More...
|
|
void | reload (const QModelIndex &index1, const QModelIndex &index2) |
| Reloads the model data between indices. More...
|
|
bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) override |
| Remove rows. More...
|
|
const QgsFeatureRequest & | request () const |
| Gets the the feature request. More...
|
|
void | resetModel () |
| Resets the model. More...
|
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| Returns the number of rows. More...
|
|
QgsFeatureId | rowToId (int row) const |
| Maps row to feature id. More...
|
|
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
| Updates data on given index. More...
|
|
void | setEditorContext (const QgsAttributeEditorContext &context) |
| Sets the context in which this table is shown. More...
|
|
void | setExtraColumns (int extraColumns) |
| Empty extra columns to announce from this model. More...
|
|
void | setRequest (const QgsFeatureRequest &request) |
| Set a request that will be used to fill this attribute table model. More...
|
|
QString | sortCacheExpression (unsigned long cacheIndex=0) const |
| The expression which was used to fill the sorting cache at index cacheIndex. More...
|
|
void | swapRows (QgsFeatureId a, QgsFeatureId b) |
| Swaps two rows. More...
|
|