summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2016-09-07 08:52:42 +0200
committerRémi Verschelde <rverschelde@gmail.com>2016-09-07 08:52:42 +0200
commitb48e6230f491098a4f0ebaaf7b0481e17827d0c1 (patch)
tree0ea8a8ecf352668fb85503aa0e4be018a5a07304 /scene
parent405f6af79c32c575768f53661127cfd6aa4230f4 (diff)
LineEdit: Quick fix to set_expand_to_text_length argument name
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/line_edit.cpp8
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);