You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Use Core/Scene stringnames consistently
This commit is contained in:
@@ -554,7 +554,7 @@ void TabContainer::add_child_notify(Node *p_child) {
|
||||
}
|
||||
|
||||
p_child->connect("renamed", callable_mp(this, &TabContainer::_refresh_tab_names));
|
||||
p_child->connect(SNAME("visibility_changed"), callable_mp(this, &TabContainer::_on_tab_visibility_changed).bind(c));
|
||||
p_child->connect(SceneStringName(visibility_changed), callable_mp(this, &TabContainer::_on_tab_visibility_changed).bind(c));
|
||||
|
||||
// TabBar won't emit the "tab_changed" signal when not inside the tree.
|
||||
if (!is_inside_tree()) {
|
||||
@@ -607,7 +607,7 @@ void TabContainer::remove_child_notify(Node *p_child) {
|
||||
p_child->remove_meta("_tab_index");
|
||||
p_child->remove_meta("_tab_name");
|
||||
p_child->disconnect("renamed", callable_mp(this, &TabContainer::_refresh_tab_names));
|
||||
p_child->disconnect(SNAME("visibility_changed"), callable_mp(this, &TabContainer::_on_tab_visibility_changed));
|
||||
p_child->disconnect(SceneStringName(visibility_changed), callable_mp(this, &TabContainer::_on_tab_visibility_changed));
|
||||
|
||||
// TabBar won't emit the "tab_changed" signal when not inside the tree.
|
||||
if (!is_inside_tree()) {
|
||||
@@ -1121,5 +1121,5 @@ TabContainer::TabContainer() {
|
||||
tab_bar->connect("tab_button_pressed", callable_mp(this, &TabContainer::_on_tab_button_pressed));
|
||||
tab_bar->connect("active_tab_rearranged", callable_mp(this, &TabContainer::_on_active_tab_rearranged));
|
||||
|
||||
connect("mouse_exited", callable_mp(this, &TabContainer::_on_mouse_exited));
|
||||
connect(SceneStringName(mouse_exited), callable_mp(this, &TabContainer::_on_mouse_exited));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user