◆ GISVectorAttributeTableModel()
| GISVectorAttributeTableModel::GISVectorAttributeTableModel |
( |
QObject * |
parent = nullptr | ) |
|
|
inlineexplicit |
◆ columnCount()
| int GISVectorAttributeTableModel::columnCount |
( |
const QModelIndex & |
parent = {} | ) |
const |
|
inlineoverride |
◆ columnHeaders()
| QStringList GISVectorAttributeTableModel::columnHeaders |
( |
| ) |
const |
|
inline |
◆ data()
| QVariant GISVectorAttributeTableModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
inlineoverride |
◆ editableFeatureLayer()
| FeatureLayer * GISVectorAttributeTableModel::editableFeatureLayer |
( |
| ) |
const |
|
inline |
The bound layer as a FeatureLayer with an OPEN edit session, or nullptr — the single predicate the flags/setData pair agree on.
◆ fidForRow()
| long long GISVectorAttributeTableModel::fidForRow |
( |
int |
row | ) |
const |
|
inline |
◆ flags()
| Qt::ItemFlags GISVectorAttributeTableModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
inlineoverride |
◆ headerData()
| QVariant GISVectorAttributeTableModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
inlineoverride |
◆ layer()
◆ reload()
| void GISVectorAttributeTableModel::reload |
( |
| ) |
|
|
inline |
Re-read the field schema and every feature from the bound OGR layer.
◆ rowCount()
| int GISVectorAttributeTableModel::rowCount |
( |
const QModelIndex & |
parent = {} | ) |
const |
|
inlineoverride |
◆ rowForFid()
| int GISVectorAttributeTableModel::rowForFid |
( |
long long |
fid | ) |
const |
|
inline |
◆ setCanvas()
| void GISVectorAttributeTableModel::setCanvas |
( |
MapCanvas * |
canvas | ) |
|
|
inline |
The undo stack edits are pushed onto. Without it the model stays read-only rather than writing behind the undo history's back.
◆ setData()
| bool GISVectorAttributeTableModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
inlineoverride |
◆ setLayer()
Bind to a feature layer (nullptr clears). Reads columns + rows now.
The documentation for this class was generated from the following file: