A table model for representing the values in a QgsCodedValue list.
More...
#include <qgsfielddomainwidget.h>
|
| QgsCodedValueTableModel (QObject *parent) |
| Constructor for QgsCodedValueTableModel, with the specified parent object.
|
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
|
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
|
bool | insertRows (int row, int count, const QModelIndex &parent=QModelIndex()) override |
|
bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) override |
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
|
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
|
void | setValues (const QList< QgsCodedValue > &values) |
| Sets the values to show in the model.
|
|
QList< QgsCodedValue > | values () const |
| Returns the values from the model.
|
|
A table model for representing the values in a QgsCodedValue list.
- Note
- Not available in Python bindings
- Since
- QGIS 3.26
Definition at line 138 of file qgsfielddomainwidget.h.
◆ QgsCodedValueTableModel()
QgsCodedValueTableModel::QgsCodedValueTableModel |
( |
QObject * |
parent | ) |
|
◆ columnCount()
int QgsCodedValueTableModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ data()
QVariant QgsCodedValueTableModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ flags()
Qt::ItemFlags QgsCodedValueTableModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ headerData()
QVariant QgsCodedValueTableModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ insertRows()
bool QgsCodedValueTableModel::insertRows |
( |
int |
row, |
|
|
int |
count, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| |
|
override |
◆ removeRows()
bool QgsCodedValueTableModel::removeRows |
( |
int |
row, |
|
|
int |
count, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| |
|
override |
◆ rowCount()
int QgsCodedValueTableModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ setData()
bool QgsCodedValueTableModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
override |
◆ setValues()
void QgsCodedValueTableModel::setValues |
( |
const QList< QgsCodedValue > & |
values | ) |
|
◆ values()
The documentation for this class was generated from the following files: