summaryrefslogtreecommitdiff
path: root/scene/gui/code_edit.cpp
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2021-07-09 14:05:52 +0100
committerPaulb23 <p_batty@hotmail.co.uk>2021-08-12 09:29:58 +0100
commit7dbb0f32333a2bb2c856e17cc1cc69a91fbf1fa3 (patch)
treecda36d59387d5e27df98e067ac0e3a2c27d1a7d2 /scene/gui/code_edit.cpp
parentb799e5583acd40f62603305c8a6b2fb31dfca9e3 (diff)
Rename readonly to editable
Diffstat (limited to 'scene/gui/code_edit.cpp')
-rw-r--r--scene/gui/code_edit.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/scene/gui/code_edit.cpp b/scene/gui/code_edit.cpp
index f9ba1f7f60..d9c37e2eca 100644
--- a/scene/gui/code_edit.cpp
+++ b/scene/gui/code_edit.cpp
@@ -523,7 +523,7 @@ Control::CursorShape CodeEdit::get_cursor_shape(const Point2 &p_pos) const {
return CURSOR_POINTING_HAND;
}
- if ((code_completion_active && code_completion_rect.has_point(p_pos)) || (is_readonly() && (!is_selecting_enabled() || get_line_count() == 0))) {
+ if ((code_completion_active && code_completion_rect.has_point(p_pos)) || (!is_editable() && (!is_selecting_enabled() || get_line_count() == 0))) {
return CURSOR_ARROW;
}
@@ -600,7 +600,7 @@ void CodeEdit::_handle_unicode_input(const uint32_t p_unicode) {
}
void CodeEdit::_backspace() {
- if (is_readonly()) {
+ if (!is_editable()) {
return;
}
@@ -714,7 +714,7 @@ TypedArray<String> CodeEdit::get_auto_indent_prefixes() const {
}
void CodeEdit::do_indent() {
- if (is_readonly()) {
+ if (!is_editable()) {
return;
}
@@ -735,7 +735,7 @@ void CodeEdit::do_indent() {
}
void CodeEdit::indent_lines() {
- if (is_readonly()) {
+ if (!is_editable()) {
return;
}
@@ -786,7 +786,7 @@ void CodeEdit::indent_lines() {
}
void CodeEdit::do_unindent() {
- if (is_readonly()) {
+ if (!is_editable()) {
return;
}
@@ -824,7 +824,7 @@ void CodeEdit::do_unindent() {
}
void CodeEdit::unindent_lines() {
- if (is_readonly()) {
+ if (!is_editable()) {
return;
}
@@ -911,7 +911,7 @@ int CodeEdit::_calculate_spaces_till_next_right_indent(int p_column) const {
}
void CodeEdit::_new_line(bool p_split_current_line, bool p_above) {
- if (is_readonly()) {
+ if (!is_editable()) {
return;
}
@@ -1839,7 +1839,7 @@ void CodeEdit::set_code_completion_selected_index(int p_index) {
}
void CodeEdit::confirm_code_completion(bool p_replace) {
- if (is_readonly() || !code_completion_active) {
+ if (!is_editable() || !code_completion_active) {
return;
}