Merge pull request #58739 from Calinou/control-add-constructors
Add optional constructor arguments to more Control nodes
This commit is contained in:
commit
8845798b44
17 changed files with 31 additions and 17 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue