diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2020-12-21 00:26:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-21 00:26:08 +0100 |
commit | f7ddcbf446e88b155f1172d94d30a7974e67e8a8 (patch) | |
tree | 2f3a4ae40e8f9fa3b9b6720aa8e42670bc608aa9 /scene/gui/tab_container.h | |
parent | 153c132a7e7e7cea00c420b93257f3ebd56cf2dc (diff) | |
parent | 0394ff3c998f40c40206a8eda610cebdcca9e162 (diff) | |
download | redot-engine-f7ddcbf446e88b155f1172d94d30a7974e67e8a8.tar.gz |
Merge pull request #44328 from gongpha/tabs-label-incorrect
Refresh TextLine buffer when moving a 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; |