diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2021-07-06 12:49:27 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2021-07-06 18:03:03 +0200 |
commit | 9a1ce8e6c32534c3452f80d0245935498d97af66 (patch) | |
tree | a79c7b33801affed550bc20873a9d5ebc99d669d /editor/project_export.h | |
parent | f56ae4045f73d7a532f0694860053f6356e9d29c (diff) |
LineEdit: Respect `max_length` by truncating text to append
When appending text (either via `set_text()` or by pasting from clipboard),
if the input would make the `LineEdit` exceed its configured `max_length`,
the input text is truncated to fit. The discard part is passed as a parameter
in the `text_change_rejected` signal.
Fixes #33321.
Fixes #41278.
Also cleaned up unimplemented `max_chars` property in `TextEdit`.
Co-authored-by: Tony-Goat <70238376+Tony-Goat@users.noreply.github.com>
Diffstat (limited to 'editor/project_export.h')
0 files changed, 0 insertions, 0 deletions