Skip to content

Commit

Permalink
small update in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Oct 17, 2024
1 parent a66ef1e commit 37749b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/attributes/attributecontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,15 @@ void AttributeController::flatten(
QStringList expressions;
QString expression = field.constraints().constraintExpression();

//Alias|name expression
// Retrieving field name/alias expression
QgsEditFormConfig editFormConfig = layer->editFormConfig();
QString fieldName = field.name();
QgsPropertyCollection fieldProperties = editFormConfig.dataDefinedFieldProperties( fieldName );
QgsProperty nameProperty = fieldProperties.property( QgsEditFormConfig::DataDefinedProperty::Alias );
QString nameExpressionString = nameProperty.expressionString();
QgsExpression nameExpression( nameExpressionString );

//Editable expression
// Retrieving field editability expression
QgsProperty editableProperty = fieldProperties.property( QgsEditFormConfig::DataDefinedProperty::Editable );
QString editableExpressionString = editableProperty.expressionString();
QgsExpression editableExpression( editableExpressionString );
Expand Down

0 comments on commit 37749b0

Please sign in to comment.