diff options
| author | Rémi Verschelde | 2018-01-10 10:38:28 +0100 |
|---|---|---|
| committer | GitHub | 2018-01-10 10:38:28 +0100 |
| commit | 415d128249f71babb2b11c880b14af721e3c3944 (patch) | |
| tree | 313670517703019bf1abd6f95b8d14a7d4cc0427 /scene/gui/line_edit.cpp | |
| parent | 082d83fe0b466eba034332d64d092b1cff026e07 (diff) | |
| parent | 4b6bef65242c6ccd96ac857a764c952e61441593 (diff) | |
| download | godot-415d128249f71babb2b11c880b14af721e3c3944.tar.gz godot-415d128249f71babb2b11c880b14af721e3c3944.tar.zst godot-415d128249f71babb2b11c880b14af721e3c3944.zip | |
Merge pull request #15530 from akien-mga/signal-args
Fix signal arguments shadowing member variables
Diffstat (limited to 'scene/gui/line_edit.cpp')
| -rw-r--r-- | scene/gui/line_edit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 53f609723..97f740a4b 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -1413,8 +1413,8 @@ void LineEdit::_bind_methods() { ClassDB::bind_method(D_METHOD("set_context_menu_enabled", "enable"), &LineEdit::set_context_menu_enabled); ClassDB::bind_method(D_METHOD("is_context_menu_enabled"), &LineEdit::is_context_menu_enabled); - ADD_SIGNAL(MethodInfo("text_changed", PropertyInfo(Variant::STRING, "text"))); - ADD_SIGNAL(MethodInfo("text_entered", PropertyInfo(Variant::STRING, "text"))); + ADD_SIGNAL(MethodInfo("text_changed", PropertyInfo(Variant::STRING, "new_text"))); + ADD_SIGNAL(MethodInfo("text_entered", PropertyInfo(Variant::STRING, "new_text"))); BIND_ENUM_CONSTANT(ALIGN_LEFT); BIND_ENUM_CONSTANT(ALIGN_CENTER); |
