55 DestinationConstraints,
85 bool destinationEditable()
const;
88 void setDestinationEditable(
bool editable );
94 Q_DECL_DEPRECATED
static const QMap<QMetaType::Type, QString> dataTypes();
100 static const QList<QgsVectorDataProvider::NativeType> supportedDataTypes();
106 QList<QgsFieldMappingModel::Field> mapping()
const;
114 QMap<QString, QgsProperty> fieldPropertyMap()
const;
121 void setFieldPropertyMap(
const QMap<QString, QgsProperty> &map );
124 void appendField(
const QgsField &field,
const QString &expression = QString() );
127 bool removeField(
const QModelIndex &index );
130 bool moveUp(
const QModelIndex &index );
133 bool moveDown(
const QModelIndex &index );
136 void setSourceFields(
const QgsFields &sourceFields );
152 void setDestinationFields(
const QgsFields &destinationFields,
const QMap<QString, QString> &expressions = QMap<QString, QString>() );
156 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
157 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
158 QVariant data(
const QModelIndex &index,
int role )
const override;
159 QVariant headerData(
int section, Qt::Orientation orientation,
int role )
const override;
160 Qt::ItemFlags flags(
const QModelIndex &index )
const override;
161 bool setData(
const QModelIndex &index,
const QVariant &value,
int role )
override;
167 ExpressionContextGenerator(
const QgsFields &sourceFields );
172 void setSourceFields(
const QgsFields &fields );
187 static const QString qgsFieldToTypeName(
const QgsField &field );
193 static void setFieldTypeFromName(
QgsField &field,
const QString &name );
195 bool moveUpOrDown(
const QModelIndex &index,
bool up =
true );
208 QList<Field> mMapping;
209 bool mDestinationEditable =
false;
211 std::unique_ptr<ExpressionContextGenerator> mExpressionContextGenerator;
Abstract interface for generating an expression context.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...