|
| QgsFieldMappingModel (const QgsFields &sourceFields=QgsFields(), const QgsFields &destinationFields=QgsFields(), const QMap< QString, QString > &expressions=QMap< QString, QString >(), QObject *parent=nullptr) |
| Constructs a QgsFieldMappingModel from a set of sourceFields and destinationFields, initial values for the expressions can be optionally specified through expressions which is a map from the original field name to the corresponding expression. More...
|
|
void | appendField (const QgsField &field, const QString &expression=QString()) |
| Appends a new field to the model, with an optional expression. More...
|
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
|
QgsExpressionContextGenerator * | contextGenerator () const |
| Returns the context generator with the source fields. More...
|
|
QVariant | data (const QModelIndex &index, int role) const override |
|
bool | destinationEditable () const |
| Returns true if the destination fields are editable. More...
|
|
QMap< QString, QgsProperty > | fieldPropertyMap () const |
| Returns a map of destination field name to QgsProperty definition for field value, representing the current status of the model. More...
|
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
|
QList< QgsFieldMappingModel::Field > | mapping () const |
| Returns a list of Field objects representing the current status of the model. More...
|
|
bool | moveDown (const QModelIndex &index) |
| Moves up the field at index. More...
|
|
bool | moveUp (const QModelIndex &index) |
| Moves down the field at index. More...
|
|
| Q_ENUM (ColumnDataIndex) |
|
bool | removeField (const QModelIndex &index) |
| Removes the field at index from the model, returns true on success. More...
|
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
|
void | setBaseExpressionContextGenerator (const QgsExpressionContextGenerator *generator) |
| Sets the base expression context generator, which will generate the expression contexts for expression based widgets used by the model. More...
|
|
bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
|
void | setDestinationEditable (bool editable) |
| Sets the destination fields editable state to editable. More...
|
|
void | setDestinationFields (const QgsFields &destinationFields, const QMap< QString, QString > &expressions=QMap< QString, QString >()) |
| Set destination fields to destinationFields, initial values for the expressions can be optionally specified through expressions which is a map from the original field name to the corresponding expression. More...
|
|
void | setFieldPropertyMap (const QMap< QString, QgsProperty > &map) |
| Sets a map of destination field name to QgsProperty definition for field value. More...
|
|
void | setSourceFields (const QgsFields &sourceFields) |
| Set source fields to sourceFields. More...
|
|
QgsFields | sourceFields () const |
| Returns a list of source fields. More...
|
|