diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-06-04 16:13:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-04 16:13:25 +0200 |
commit | 766c6dbb24c736eb1e24ca69eb15398eac654c2c (patch) | |
tree | a2e53b3874b60a5e9890609cd59880e7dee307e5 /scene | |
parent | 0de0347c1e3d74698c891d27c010033221100d72 (diff) | |
parent | bc5c10e0f84aecb598fcf2000c9bc7eb8ed4b28e (diff) | |
download | redot-engine-766c6dbb24c736eb1e24ca69eb15398eac654c2c.tar.gz |
Merge pull request #48920 from aaronfranke/accept
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/dialogs.cpp | 2 | ||||
-rw-r--r-- | scene/gui/dialogs.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/dialogs.cpp b/scene/gui/dialogs.cpp index b6884bd37d..7cae091c57 100644 --- a/scene/gui/dialogs.cpp +++ b/scene/gui/dialogs.cpp @@ -155,7 +155,7 @@ bool AcceptDialog::has_autowrap() { return label->has_autowrap(); } -void AcceptDialog::register_text_enter(Node *p_line_edit) { +void AcceptDialog::register_text_enter(Control *p_line_edit) { ERR_FAIL_NULL(p_line_edit); LineEdit *line_edit = Object::cast_to<LineEdit>(p_line_edit); if (line_edit) { diff --git a/scene/gui/dialogs.h b/scene/gui/dialogs.h index b072055d49..69035001c0 100644 --- a/scene/gui/dialogs.h +++ b/scene/gui/dialogs.h @@ -77,7 +77,7 @@ public: Label *get_label() { return label; } static void set_swap_cancel_ok(bool p_swap); - void register_text_enter(Node *p_line_edit); + void register_text_enter(Control *p_line_edit); Button *get_ok_button() { return ok; } Button *add_button(const String &p_text, bool p_right = false, const String &p_action = ""); |