From fbb879debd0957354ab42731be402b0a5a9f4e48 Mon Sep 17 00:00:00 2001 From: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Date: Tue, 14 May 2024 11:42:00 +0200 Subject: [Scene] Add `SceneStringNames::text/value_changed` --- editor/group_settings_editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editor/group_settings_editor.cpp') diff --git a/editor/group_settings_editor.cpp b/editor/group_settings_editor.cpp index 6415b0a5da..bb899af582 100644 --- a/editor/group_settings_editor.cpp +++ b/editor/group_settings_editor.cpp @@ -451,7 +451,7 @@ void GroupSettingsEditor::_show_rename_dialog() { rename_validation_panel->set_update_callback(callable_mp(this, &GroupSettingsEditor::_check_rename)); rename_validation_panel->set_accept_button(rename_group_dialog->get_ok_button()); - rename_group->connect("text_changed", callable_mp(rename_validation_panel, &EditorValidationPanel::update).unbind(1)); + rename_group->connect(SceneStringName(text_changed), callable_mp(rename_validation_panel, &EditorValidationPanel::update).unbind(1)); vbc->add_child(rename_validation_panel); @@ -499,7 +499,7 @@ GroupSettingsEditor::GroupSettingsEditor() { group_name = memnew(LineEdit); group_name->set_h_size_flags(SIZE_EXPAND_FILL); group_name->set_clear_button_enabled(true); - group_name->connect("text_changed", callable_mp(this, &GroupSettingsEditor::_group_name_text_changed)); + group_name->connect(SceneStringName(text_changed), callable_mp(this, &GroupSettingsEditor::_group_name_text_changed)); group_name->connect("text_submitted", callable_mp(this, &GroupSettingsEditor::_text_submitted)); hbc->add_child(group_name); -- cgit v1.2.3