From a811ebf6993aada1ba5f0f9502976e10fad8b179 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Wed, 2 Mar 2022 11:37:10 -0300 Subject: Make `TabContainer` use `TabBar` internally --- editor/plugins/script_editor_plugin.cpp | 206 +++++++++++------------ editor/plugins/theme_editor_plugin.cpp | 2 +- editor/plugins/version_control_editor_plugin.cpp | 2 +- 3 files changed, 105 insertions(+), 105 deletions(-) (limited to 'editor/plugins') diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 30c2b12519..a4a2919034 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -407,8 +407,8 @@ void ScriptEditor::_breaked(bool p_breaked, bool p_can_debug) { return; } - for (int i = 0; i < tab_container->get_child_count(); i++) { - ScriptEditorBase *se = Object::cast_to(tab_container->get_child(i)); + for (int i = 0; i < tab_container->get_tab_count(); i++) { + ScriptEditorBase *se = Object::cast_to(tab_container->get_tab_control(i)); if (!se) { continue; } @@ -447,8 +447,8 @@ void ScriptEditor::_goto_script_line(REF p_script, int p_line) { void ScriptEditor::_set_execution(REF p_script, int p_line) { Ref