Merge pull request #28266 from coldrye-collaboration/gh-28241
Fix LineEdit not expanded to text length on undo/redo
This commit is contained in:
commit
86aa22b2ac
1 changed files with 8 additions and 0 deletions
|
@ -920,6 +920,10 @@ void LineEdit::undo() {
|
|||
TextOperation op = undo_stack_pos->get();
|
||||
text = op.text;
|
||||
set_cursor_position(op.cursor_pos);
|
||||
|
||||
if (expand_to_text_length)
|
||||
minimum_size_changed();
|
||||
|
||||
_emit_text_change();
|
||||
}
|
||||
|
||||
|
@ -934,6 +938,10 @@ void LineEdit::redo() {
|
|||
TextOperation op = undo_stack_pos->get();
|
||||
text = op.text;
|
||||
set_cursor_position(op.cursor_pos);
|
||||
|
||||
if (expand_to_text_length)
|
||||
minimum_size_changed();
|
||||
|
||||
_emit_text_change();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue