diff options
author | gongpha <gongpha@hotmail.com> | 2020-12-12 23:41:51 +0700 |
---|---|---|
committer | gongpha <gongpha@hotmail.com> | 2020-12-13 02:38:53 +0700 |
commit | 0394ff3c998f40c40206a8eda610cebdcca9e162 (patch) | |
tree | 5d3d3180b575cbfd3b4f5eb08d5f4d04f531bbe5 /scene/gui/tab_container.h | |
parent | 0762484473c1330c5d524d5cc3644d5e2b2e557c (diff) |
Refresh TextLine buffer when moving tab
Diffstat (limited to 'scene/gui/tab_container.h')
-rw-r--r-- | scene/gui/tab_container.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/tab_container.h b/scene/gui/tab_container.h index 91153e5fc3..9ff56afe6e 100644 --- a/scene/gui/tab_container.h +++ b/scene/gui/tab_container.h @@ -73,12 +73,14 @@ private: void _on_mouse_exited(); void _update_current_tab(); void _draw_tab(Ref<StyleBox> &p_tab_style, Color &p_font_color, int p_index, float p_x); + void _refresh_texts(); protected: void _child_renamed_callback(); void _gui_input(const Ref<InputEvent> &p_event); void _notification(int p_what); virtual void add_child_notify(Node *p_child) override; + virtual void move_child_notify(Node *p_child) override; virtual void remove_child_notify(Node *p_child) override; Variant get_drag_data(const Point2 &p_point) override; |