Skip to content

Commit

Permalink
post review updates
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Nov 19, 2024
1 parent 404ac2b commit 64f7ac7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/attributes/attributecontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ void AttributeController::recalculateDerivedItems( bool isFormValueChange, bool
}
}

// Evaluate form items editability
// Evaluate if form items are editable
{
QMap<QUuid, std::shared_ptr<FormItem>>::iterator formItemsIterator = mFormItems.begin();
while ( formItemsIterator != mFormItems.end() )
Expand All @@ -935,12 +935,12 @@ void AttributeController::recalculateDerivedItems( bool isFormValueChange, bool

if ( exp.isValid() )
{
editable = exp.evaluate( &expressionContext ).toInt();
editable = exp.evaluate( &expressionContext ).toBool();
}

if ( item->isEditable() != editable )
{
item->setEditable( editable );
item->setIsEditable( editable );
changedFormItems << item->id();
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/attributes/attributedata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ void FormItem::setVisible( bool visible )
mVisible = visible;
}

void FormItem::setEditable( bool editable )
void FormItem::setIsEditable( bool editable )
{
mIsEditable = editable;
}
Expand Down
2 changes: 1 addition & 1 deletion app/attributes/attributedata.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class FormItem
void setValidationStatus( FieldValidator::ValidationStatus status );

bool isEditable() const;
void setEditable( bool editable );
void setIsEditable( bool editable );

bool isVisible() const;
void setVisible( bool visible );
Expand Down

1 comment on commit 64f7ac7

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 24.11.695211 just submitted!

Please sign in to comment.