diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2016-09-07 08:52:42 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2016-09-07 08:52:42 +0200 |
commit | b48e6230f491098a4f0ebaaf7b0481e17827d0c1 (patch) | |
tree | 0ea8a8ecf352668fb85503aa0e4be018a5a07304 /scene | |
parent | 405f6af79c32c575768f53661127cfd6aa4230f4 (diff) |
LineEdit: Quick fix to set_expand_to_text_length argument name
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/line_edit.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index c7a9a65632..90a8af9238 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -1228,9 +1228,9 @@ PopupMenu *LineEdit::get_menu() const { #endif -void LineEdit::set_expand_to_text_length(bool p_len) { +void LineEdit::set_expand_to_text_length(bool p_enabled) { - expand_to_text_length=p_len; + expand_to_text_length = p_enabled; minimum_size_changed(); } @@ -1272,9 +1272,9 @@ void LineEdit::_bind_methods() { ObjectTypeDB::bind_method(_MD("get_placeholder_alpha"),&LineEdit::get_placeholder_alpha); ObjectTypeDB::bind_method(_MD("set_cursor_pos","pos"),&LineEdit::set_cursor_pos); ObjectTypeDB::bind_method(_MD("get_cursor_pos"),&LineEdit::get_cursor_pos); - ObjectTypeDB::bind_method(_MD("set_expand_to_text_length","pos"),&LineEdit::set_expand_to_text_length); + ObjectTypeDB::bind_method(_MD("set_expand_to_text_length","enabled"),&LineEdit::set_expand_to_text_length); ObjectTypeDB::bind_method(_MD("get_expand_to_text_length"),&LineEdit::get_expand_to_text_length); - ObjectTypeDB::bind_method(_MD("cursor_set_blink_enabled", "enable"),&LineEdit::cursor_set_blink_enabled); + ObjectTypeDB::bind_method(_MD("cursor_set_blink_enabled", "enabled"),&LineEdit::cursor_set_blink_enabled); ObjectTypeDB::bind_method(_MD("cursor_get_blink_enabled"),&LineEdit::cursor_get_blink_enabled); ObjectTypeDB::bind_method(_MD("cursor_set_blink_speed", "blink_speed"),&LineEdit::cursor_set_blink_speed); ObjectTypeDB::bind_method(_MD("cursor_get_blink_speed"),&LineEdit::cursor_get_blink_speed); |