diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-03-04 11:42:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-04 11:42:53 +0100 |
commit | 8845798b44883b9b2c5a552aaa85530298c8a71a (patch) | |
tree | 7f5f4797d241d6f3a619b668830137cdb7ed67de /scene/gui/text_edit.cpp | |
parent | f94233ee539e4ddfd6497d0f37257c6dd59efcb7 (diff) | |
parent | a06f82ca4dbdff633424e59243dc411bb8070b99 (diff) |
Merge pull request #58739 from Calinou/control-add-constructors
Add optional constructor arguments to more Control nodes
Diffstat (limited to 'scene/gui/text_edit.cpp')
-rw-r--r-- | scene/gui/text_edit.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index f34f0b6709..05fda7128c 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -6581,7 +6581,7 @@ void TextEdit::_base_remove_text(int p_from_line, int p_from_column, int p_to_li emit_signal(SNAME("lines_edited_from"), p_to_line, p_from_line); } -TextEdit::TextEdit() { +TextEdit::TextEdit(const String &p_placeholder) { placeholder_data_buf.instantiate(); clear(); @@ -6623,5 +6623,7 @@ TextEdit::TextEdit() { undo_stack_max_size = GLOBAL_GET("gui/common/text_edit_undo_stack_max_size"); + set_placeholder(p_placeholder); + set_editable(true); } |