Skip to content

Commit

Permalink
address review
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Feb 2, 2023
1 parent 1b07de1 commit bfc7985
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions app/attributes/attributecontroller.cpp
Expand Up @@ -458,7 +458,6 @@ void AttributeController::updateOnFeatureChange()
{
mFeatureLayerPair.featureRef().setAttribute( fieldIndex, rememberedValue );
itemData->setRawValue( rememberedValue );
emit formDataChanged( itemData->id(), { AttributeFormModel::RawValue } );
}
}
}
Expand Down Expand Up @@ -1120,7 +1119,6 @@ bool AttributeController::setFormValue( const QUuid &id, QVariant value )

item->setRawValue( val );
emit formDataChanged( item->id(), { AttributeFormModel::RawValue } );
emit rawValueChanged();

if ( !field.convertCompatible( val ) )
{
Expand Down
1 change: 0 additions & 1 deletion app/attributes/attributecontroller.h
Expand Up @@ -167,7 +167,6 @@ class AttributeController : public QObject
void featureIdChanged();
void changesCommited();
void commitFailed();
void rawValueChanged();

private:
void clearAll();
Expand Down
1 change: 0 additions & 1 deletion app/attributes/fieldvalidator.cpp
Expand Up @@ -35,7 +35,6 @@ FieldValidator::ValidationStatus FieldValidator::validate( const FeatureLayerPai
ValidationStatus state = Valid;

const QgsField field = item.field();
//QVariant value = pair.feature().attribute( item.fieldIndex() );
QVariant value = item.rawValue();

bool isNumeric = item.editorWidgetType() == QStringLiteral( "Range" ) || field.isNumeric();
Expand Down
8 changes: 0 additions & 8 deletions app/qml/editor/inputtextedit.qml
Expand Up @@ -66,14 +66,6 @@ AbstractEditor {
if ( field.isNumeric )
{
val = val.replace( ",", "." ).replace( / /g, '' ) // replace comma with dot and remove spaces

let endsWithDecimalSeparator = val.endsWith('.');
let hasOnlyOneDecimalSeparator = val.split('.').length === 2;

if ( endsWithDecimalSeparator && hasOnlyOneDecimalSeparator )
{
return; // do not send value changed signal when number ends with decimal separator
}
}

editorValueChanged( val, val === "" )
Expand Down

1 comment on commit bfc7985

@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 23.02.400011 just submitted!

Please sign in to comment.