You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Treat hiding_enabled as bool throughout
This commit is contained in:
@@ -391,7 +391,7 @@
|
|||||||
<member name="fold_gutter" type="bool" setter="set_draw_fold_gutter" getter="is_drawing_fold_gutter">
|
<member name="fold_gutter" type="bool" setter="set_draw_fold_gutter" getter="is_drawing_fold_gutter">
|
||||||
If [code]true[/code], the fold gutter is visible. This enables folding groups of indented lines.
|
If [code]true[/code], the fold gutter is visible. This enables folding groups of indented lines.
|
||||||
</member>
|
</member>
|
||||||
<member name="hiding_enabled" type="int" setter="set_hiding_enabled" getter="is_hiding_enabled">
|
<member name="hiding_enabled" type="bool" setter="set_hiding_enabled" getter="is_hiding_enabled">
|
||||||
</member>
|
</member>
|
||||||
<member name="highlight_all_occurrences" type="bool" setter="set_highlight_all_occurrences" getter="is_highlight_all_occurrences_enabled">
|
<member name="highlight_all_occurrences" type="bool" setter="set_highlight_all_occurrences" getter="is_highlight_all_occurrences_enabled">
|
||||||
</member>
|
</member>
|
||||||
|
|||||||
@@ -6342,14 +6342,14 @@ int TextEdit::get_info_gutter_width() const {
|
|||||||
return info_gutter_width;
|
return info_gutter_width;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextEdit::set_hiding_enabled(int p_enabled) {
|
void TextEdit::set_hiding_enabled(bool p_enabled) {
|
||||||
if (!p_enabled)
|
if (!p_enabled)
|
||||||
unhide_all_lines();
|
unhide_all_lines();
|
||||||
hiding_enabled = p_enabled;
|
hiding_enabled = p_enabled;
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
int TextEdit::is_hiding_enabled() const {
|
bool TextEdit::is_hiding_enabled() const {
|
||||||
return hiding_enabled;
|
return hiding_enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -697,8 +697,8 @@ public:
|
|||||||
void set_info_gutter_width(int p_gutter_width);
|
void set_info_gutter_width(int p_gutter_width);
|
||||||
int get_info_gutter_width() const;
|
int get_info_gutter_width() const;
|
||||||
|
|
||||||
void set_hiding_enabled(int p_enabled);
|
void set_hiding_enabled(bool p_enabled);
|
||||||
int is_hiding_enabled() const;
|
bool is_hiding_enabled() const;
|
||||||
|
|
||||||
void set_tooltip_request_func(Object *p_obj, const StringName &p_function, const Variant &p_udata);
|
void set_tooltip_request_func(Object *p_obj, const StringName &p_function, const Variant &p_udata);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user