Describe the problem or limitation you are having in your project
TextEdit has a clear_undo_history() method. LineEdit doesn't have it, which is a bit limiting. When you construct a LineEdit, you often want it to start off a little filled. For a TextEdit, you can then erase the UndoRedo, but for LineEdit, you can Ctrl+Z back into the empty state. This is weird, since the user never edited it.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Implement this TextEdit method in LineEdit.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Equivalent to TextEdit's implementation.
If this enhancement will not be used often, can it be worked around with a few lines of script?
It seems impossible.
Is there a reason why this should be core and not an add-on in the asset library?
Describe the project you are working on
SVG Editor
Describe the problem or limitation you are having in your project
TextEdit has a clear_undo_history() method. LineEdit doesn't have it, which is a bit limiting. When you construct a LineEdit, you often want it to start off a little filled. For a TextEdit, you can then erase the UndoRedo, but for LineEdit, you can Ctrl+Z back into the empty state. This is weird, since the user never edited it.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Implement this TextEdit method in LineEdit.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Equivalent to TextEdit's implementation.
If this enhancement will not be used often, can it be worked around with a few lines of script?
It seems impossible.
Is there a reason why this should be core and not an add-on in the asset library?
TextEdit already has this in core.