summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorNils ANDRÉ-CHANG <nils.andre.chang@gmail.com>2019-06-08 12:37:57 +0100
committerNils ANDRÉ-CHANG <nils.andre.chang@gmail.com>2019-06-08 12:37:57 +0100
commite4f90337f29ab8cc3683921c3f78987ce1c3166b (patch)
tree5dd2683e54abf83c4d40ec51f278bfed6e48f45c /scene
parent693582f00837bb4ce4fb3ce91d2366ee359eecf4 (diff)
Treat hiding_enabled as bool throughout
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/text_edit.cpp4
-rw-r--r--scene/gui/text_edit.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 6203b15992..f70ebeec5a 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -6342,14 +6342,14 @@ int TextEdit::get_info_gutter_width() const {
return info_gutter_width;
}
-void TextEdit::set_hiding_enabled(int p_enabled) {
+void TextEdit::set_hiding_enabled(bool p_enabled) {
if (!p_enabled)
unhide_all_lines();
hiding_enabled = p_enabled;
update();
}
-int TextEdit::is_hiding_enabled() const {
+bool TextEdit::is_hiding_enabled() const {
return hiding_enabled;
}
diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h
index 68e590f1e6..0c26602d2b 100644
--- a/scene/gui/text_edit.h
+++ b/scene/gui/text_edit.h
@@ -697,8 +697,8 @@ public:
void set_info_gutter_width(int p_gutter_width);
int get_info_gutter_width() const;
- void set_hiding_enabled(int p_enabled);
- int is_hiding_enabled() const;
+ void set_hiding_enabled(bool p_enabled);
+ bool is_hiding_enabled() const;
void set_tooltip_request_func(Object *p_obj, const StringName &p_function, const Variant &p_udata);