diff --git a/ui/widgets/fields/number_input.cpp b/ui/widgets/fields/number_input.cpp index 293cae0a..ceb5a6fa 100644 --- a/ui/widgets/fields/number_input.cpp +++ b/ui/widgets/fields/number_input.cpp @@ -21,6 +21,10 @@ NumberInput::NumberInput( } } +void NumberInput::changeLimit(int limit) { + _limit = limit; +} + void NumberInput::correctValue( const QString &was, int wasCursor, diff --git a/ui/widgets/fields/number_input.h b/ui/widgets/fields/number_input.h index 3e248956..84d1dc8e 100644 --- a/ui/widgets/fields/number_input.h +++ b/ui/widgets/fields/number_input.h @@ -23,6 +23,8 @@ class NumberInput final : public MaskedInputField { const QString &value, int limit); + void changeLimit(int limit); + protected: void correctValue( const QString &was,