diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-04-19 10:40:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-19 10:40:29 +0200 |
commit | 8ba06e3161315f1af4207443df86b82d4dd6f06c (patch) | |
tree | 051eac7c1458c67cd648e9ddfc564e77f13bc7c3 /editor/script_create_dialog.cpp | |
parent | f41e7779fd3672c9da43460408f42bf06a3d803f (diff) | |
parent | 86822b187eaa0f3cfbefcb00f664d189c977658f (diff) |
Merge pull request #47448 from madmiraal/rename-lineedit-cursor
Rename LineEdit getters and setters to match property names
Diffstat (limited to 'editor/script_create_dialog.cpp')
-rw-r--r-- | editor/script_create_dialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp index 288cc2db48..f3addd8904 100644 --- a/editor/script_create_dialog.cpp +++ b/editor/script_create_dialog.cpp @@ -87,8 +87,8 @@ void ScriptCreateDialog::_path_hbox_sorted() { // First set cursor to the end of line to scroll LineEdit view // to the right and then set the actual cursor position. - file_path->set_cursor_position(file_path->get_text().length()); - file_path->set_cursor_position(filename_start_pos); + file_path->set_caret_column(file_path->get_text().length()); + file_path->set_caret_column(filename_start_pos); file_path->grab_focus(); } @@ -557,7 +557,7 @@ void ScriptCreateDialog::_file_selected(const String &p_file) { String filename = p.get_file().get_basename(); int select_start = p.rfind(filename); file_path->select(select_start, select_start + filename.length()); - file_path->set_cursor_position(select_start + filename.length()); + file_path->set_caret_column(select_start + filename.length()); file_path->grab_focus(); } } |